Jump to content

Add a variable to a class instance at runtime: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1,460:
% $s2 value time
can't read "time": no such variable</lang>
 
=={{header|Visual Foxpro}}==
<lang|vfp>LOCAL o
o = NEWOBJECT("demo")
o.AddProperty("myProperty", "Hallo World")
? o.myProperty && Displays "Hallo World"
 
DEFINE CLASS demo As Custom
*!* No properties or methods
ENDDEFINE
</lang>
 
=={{header|zkl}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.