Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ThisForm.AddProperty('aSql[1]')
Message
From
26/10/2018 11:21:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/10/2018 11:11:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01662829
Message ID:
01662832
Views:
48
>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
>
You cannot use function names as array property names.

That is something I call a bug (and VFP as a feature).
VFP uses only 4 letters of a command\function to identify the command\keyword and asql would expand to aSqlHandles (like SQLE would mean SQLExec).
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform