Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My_fields is not an array
Message
 
To
07/12/2006 10:04:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01175568
Message ID:
01175644
Views:
8
No problem.

If you do not tell what you do EXACTLY, then you cannot expect the firm answer or solution. Obviously you are doing something wrong during " many operations ", after which you want to save the field structure to the form property. At least it is clear that either you did not declare the form property correctly (and it is not an array fron the very beginning), or you have already changed the form property from array to something else.


>hi,
>thank you,
>but i need it after many operations , mean i need to use my table at command button at my form,
>
>thanks.
>>Not quite clear, how do you "try to add new property at myform as my_fields(1,0)".
>>
>>Anyway, it should be similar to this:
>>
>>*Form.init
>>use (your_table)
>>this.AddProperty("my_fields(1)",.f.)
>>this.addproperty("select_file", ALIAS())
>>=AFIELDS(ThisForm.my_fields,JUSTSTEM(ThisForm.select_file))
>>
>>
>>
>>
>>>hi all,
>>>
>>>i try to copy all buttons,text, methods and property to new form
>>>
>>>i get error messag
>>>"my_fields" is not an array
>>>at this code
>>>
>>>i try to add new property at myform as my_fields(1,0),
>>>but i add new property only as my_fields.
>>>
>>>
>>>IF NOT EMPTY(ThisForm.select_file)
>>>   USE (ThisForm.select_file)
>>>   AFIELDS(ThisForm.my_fields,JUSTSTEM(ThisForm.select_file))&& error at this line
>>>   ThisForm.combo1.RowSourceType = 5
>>>   ThisForm.combo1.RowSource = [ThisForm.my_fields]
>>>   ThisForm.combo1.Value     = ThisForm.my_fields[1]
>>>   ThisForm.Combo1.Interactivechange()
>>>   ThisForm.text3.value = JUSTSTEM(ThisForm.select_file)
>>>ENDIF
>>>
>>>thanks,
Previous
Reply
Map
View

Click here to load this message in the networking platform