Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ThisForm.AddProperty('aSql[1]')
Message
From
26/10/2018 11:20:35
 
 
To
26/10/2018 11:11:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01662829
Message ID:
01662831
Views:
59
Likes (1)
>I had something happen today I wasn't expecting. I'm refactoring .PRG code onto a form, and went to migrate an laSql[] array to thisForm.aSql[], but when I go to add the property using thisForm.addproperty("aSql[1]"), I get the error "Incorrect property name." Changing it to "azSql[1]" or nearly any other name works.
>
>Why is aSql[] not allowed? I am able to add a generic "aSql" member (without being an array).
>
>
thisForm.AddProperty("aSql[1]")
>* Returns Incorrect property name
>
>thisForm.AddProperty("asql")
>* Works
>
I believe you can't use function names (and their 4-letter-and-beyond forms) as array property names. ASQL is the reduced form of ASQLHANDLES function name. You can use it as a property name as long as it isn't an array.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform