General information
Category:
Coding, syntax & commands
>I need to open a table that is selected with GETFILE() and set a grid to display it for raw editing of the data. I can't seem to find the magic syntax to display the file seleced in the grid. So far I am trying the following but the table does not show up in the grid... Any ideas??
>
>WITH ThisForm
> .cTable = GETFILE("DBF", "Select a Table", "Open", 0, ;
> "Open a Table to Edit")
>
> IF NOT EMPTY(.cTable)
> USE (.cTable) IN 0 EXCLUSIVE
> SELECT (.cTable)
> .grdEditTable.RecordSource = (.cTable)
> .grdEditTable.Refresh()
> ENDIF
>ENDWITH
>
>
>Thanks
You also have to set your column control sources.
HTH
Dan
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only