Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Array Weirdness
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Form Array Weirdness
Miscellaneous
Thread ID:
00842734
Message ID:
00842734
Views:
40
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
Map
View

Click here to load this message in the networking platform