Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requery a 6.0 Grid
Message
 
 
To
21/03/2000 12:06:18
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00347821
Message ID:
00348496
Views:
35
>>
Set the column1 control source to the first column of test and set column2 control source to the third column of test.
<<

This is where your problem rests. You need to make sure the columns of the grid match the columns of the cursor. Any cursor columns you don't wish to display need to be places AFTER the columns that you do wish to display.



>John,
>
>Try this in VFP 6.0:
>
>Using sql select some records from a table into a cursor called test. (The cursor must have atleast 3 columns. Now drop a base class grid on a form with a column count of 2. Make the record source 'test' with the recordsource type alias. Set the column1 control source to the first column of test and set column2 control source to the third column of test. Then run the form and note the contents of column 2 in your grid. Now run your sql again. Column 2 in your grid will no longer display the third column of test, it is column 2 instead.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform