Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I show diverse data in a predefined GRID
Message
From
19/07/2001 03:24:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
How can I show diverse data in a predefined GRID
Miscellaneous
Thread ID:
00532388
Message ID:
00532388
Views:
48
Hello everybody!

This is my problem: In the click event of a pushbutton included into a form, I create a free table with data recovered from other two tables. My code names this table with current hour, minute and second and creates a variable (lcTableName), i.e.: lcTableName = 142512.dbf(this permit other users to create their own free table). I can see the data of this table perfectly with the BROWSE command. When I refer to the table I always use the macro &lcTableName.

Well, the problem is comming now: I would like to show this data in a GRID posted in a new form. I have tried to create the grid previously with a fixed data structure and sending later as a PARAMETER lcTableName to the new form trying to assign RecordSource = &lcTableName, but it doesn't work.

Probably I should create the grid by programming, but where should I write this code, into the INIT event of the form?. Someone expert in grids could give an example of such code including how to assign a parameter to the RecordSource?

Thanks in advance!

Carlos Fuertes
Next
Reply
Map
View

Click here to load this message in the networking platform