>>>vfp has quite a dose of prototypical behaviour if compared with a more strict class based language like java...
>>
>>can you expand on that? not sure I get it ...
>>thanks
>
>ADDPROPERTY() springs to mind...
In VFP you can ADDPROPERTY() at the object level, in JavaScript you can ADDPROPERTY() and even ADDMETHOD() at the global native level:
if you write (JavaScript)
String.prototype.test = 'test';
String.prototype.rTrim = function() {some code};
Any string you create afterwards will inherit from this 'method'
'myString'.test;
'myString'.rTrim();
prototype.js (
http://prototypejs.org/) is all based on that, with pros and cons
Some love, some hate prototype.js ... at least people enjoy their freedom of speech ... another reason for me to enjoy the JavaScript culture.
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/Never explain, never complain (Queen Elizabeth II)