Information générale
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement