>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).