>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