Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing Combobox in VFP 6.0
Message
From
05/03/1999 04:15:27
 
 
To
05/03/1999 04:06:17
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00194348
Message ID:
00194351
Views:
18
Hi Benn,

You have to issue a Requery to the combo after your SELECT INTO ... ARRAY.

THIS.REQUERY()

This will "re-evaluate" the RowSource after you've made changes to it.

HTH,
Bonnie

>If I change the contents of an array that is the RowSource to an Combobox, I get blank lines in the Combobox if the new contents contains less lines than the previous contents.
>
>Init:
>PUBLIC aData[1]
>SELECT Field FROM Table INTO ARRAY aData && Select 10 records
>
>
>Change data:
>RELEASE aData
>PUBLIC adata[1]
>SELECT Field FROM table WHERE Key = nKey INTO ARRAY aData && Select 5 records
>
>Now the Combobox contains 5 blank lines..... WHY ????
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform