Visual FoxPro Developer Center >
Visual FoxPro Forums
>
Visual FoxPro General
>
aitems is not an array - error message
aitems is not an array - error message
- Hi all,
when i tried to run oledrag and drop to my forms i encountered aitems is not an array. I had created new property aitems.
DIMENSION THISFORM.aItems[1]
this line cause an error. Please advice.
Thanks.
MCP - SQL SERVER 2k/ WINDOWS XP , VFP 6 YEARS
Answers
- Open form with "modify form test"then click form menuthen click New Property MenuType Property Name "Aitems[1]" without Quotewrite default value if you wantand press add button
Please "Mark as Answer" if this post answered your question. :)
Kalpesh Chhatrala | Software Developer | Rajkot | India
Kalpesh's Blog- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorThursday, November 05, 2009 7:56 AM
- I've tried right now - created a new form, in the New property dialog typed aItems[1]
and it worked just fine.
Premature optimization is the root of all evil in programming.
Donald Knuth, repeating C. A. R. Hoare
My blog - Marked As Answer byMartin Xie - MSFTMSFT, ModeratorThursday, November 05, 2009 7:55 AM
All Replies
- First of all you have to create property in Form like belowoFrm = CREATEOBJECT("FORM")oFrm.AddProperty("A[1]")then you can use this property like array
Please "Mark as Answer" if this post answered your question. :)
Kalpesh Chhatrala | Software Developer | Rajkot | India
Kalpesh's Blog - Hi Kalpesh,
But i had created at form -> New property.
I will tried your solutions as above.
Thanks so much.
MCP - SQL SERVER 2k/ WINDOWS XP , VFP 6 YEARS - created at form -> New propertyfill name as "propname[1]"and press add button.form property created.
Please "Mark as Answer" if this post answered your question. :)
Kalpesh Chhatrala | Software Developer | Rajkot | India
Kalpesh's Blog Hi Kalpesh,
OOO need put double quote = "" ?
I had tried
oFrm = CREATEOBJECT("FORM")oFrm.AddProperty("Aitems[1]")
but still prompt Aitems is not an array.
Thanks.
MCP - SQL SERVER 2k/ WINDOWS XP , VFP 6 YEARS- Hi Kalpesh,
I tried put double quotes at property but to no avail.
But it prompt me "invalid name".
Thanks.
MCP - SQL SERVER 2k/ WINDOWS XP , VFP 6 YEARS - Open form with "modify form test"then click form menuthen click New Property MenuType Property Name "Aitems[1]" without Quotewrite default value if you wantand press add button
Please "Mark as Answer" if this post answered your question. :)
Kalpesh Chhatrala | Software Developer | Rajkot | India
Kalpesh's Blog- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorThursday, November 05, 2009 7:56 AM
- instead ofDIMENSION THISFORM.aItems[1]usethisform,addproperty('aItems[1]')
- Hi kalpesh,
It not allowed Aitem[1] even without quotes.
It prompted me "Invalid name"
Thanks.
MCP - SQL SERVER 2k/ WINDOWS XP , VFP 6 YEARS - I've tried right now - created a new form, in the New property dialog typed aItems[1]
and it worked just fine.
Premature optimization is the root of all evil in programming.
Donald Knuth, repeating C. A. R. Hoare
My blog - Marked As Answer byMartin Xie - MSFTMSFT, ModeratorThursday, November 05, 2009 7:55 AM
- Hi Naom,
yes yes so weird now its ok.
But that day it really blocked me.
Thanks.
MCP - SQL SERVER 2k/ WINDOWS XP , VFP 6 YEARS


