Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Array Weirdness
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Form Array Weirdness
Divers
Thread ID:
00842734
Message ID:
00842734
Vues:
41
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
Fil
Voir

Click here to load this message in the networking platform