General information
Title:
Form Array Weirdness
I am seeing some really strange behavior in VFP 8 (using SP1) when dealing with custom array properties on forms. For example, given the following code:
frmMyForm.Init()
if !dodefault()
return .f.
endif
this.addproperty("aMyArray[1]")
this.addproperty("aMyArrayTwo[1]")
this.addproperty("aMyArrayThree[1]")
I get the error "Not a character expression" on the first AddProperty line of code (but never any subsequent lines). If I suspend the code and go to the debugger, I can step into the code without the error re-occuring, then resume without any further errors. If I "ignore" the error, the array property is not created.
If I change the first AddProperty() call to read:
this.addproperty("aMyArray[1,1]")
then the error never occurs and the code is magically fixed.
Has anybody else seen this sort of behavior?
Thanks,
Paul James
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only