In VB6 what is the difference between Property Set and Property Let?

Brian Hooper picture Brian Hooper · Feb 18, 2011 · Viewed 50.6k times · Source

I have just created several Property Set methods, and they didn't compile. When I changed them to Property Let, everything was fine.

I have since studied the documentation to find the difference between Property Set and Property Let, but must admit to being none the wiser. Is there any difference, and if so could someone offer a pointer to a proper explanation of it?

Answer

mwolfe02 picture mwolfe02 · Feb 18, 2011

Property Set is for objects (e.g., class instances)

Property Let is for "normal" datatypes (e.g., string, boolean, long, etc.)