Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requerying a combo
Message
From
30/05/2011 09:34:14
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01512199
Message ID:
01512240
Views:
85
Thanks, Sergey.

>ACOPY() does not redimention destination array unless it has only one item
>
>...
>* Before the second ACOPY() redimention to one item
>DIMENSION thisform.aView[1]
>ACOPY(laView, thisform.aView)
>...
>
>
>>
>>I have a combo that is bound to thisform.aView and has the following properties:
>>
>>rowsource - thisform.aView
>>rowsourcetype - array
>>
>>Why am I seeing the following in the combo:
>>
>>one
>>two
>>three
>>
>>I should be seeing:
>>
>>one
>>two
>>
>>
>>DIMENSION laview[3]
>>
>>laview[1] = 'one'
>>laview[2] = 'two'
>>laview[3] = 'three'
>>
>>
>>ACOPY(laView, thisform.aView)
>>
>>thisform.cboView.clear()
>>thisform.cboView.Requery()
>>thisform.cboView.refresh()
>>thisform.cboView.Value = thisform.aView[1]
>>
>>
>>DIMENSION laview[2]
>>
>>laview[1] = 'one'
>>laview[2] = 'two'
>>
>>ACOPY(laView, thisform.aView)
>>
>>thisform.cboView.clear()
>>thisform.cboView.Requery()
>>thisform.cboView.refresh()
>>thisform.cboView.Value = thisform.aView[1]
>>
>>
>>Thanks,
>>
>>Yossi
Previous
Reply
Map
View

Click here to load this message in the networking platform