Cheers guys
Saving DataGrid data to Text Files
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
FinishTheCode
- Posts: 5
- Joined: Wed Apr 17, 2013 3:53 pm
Saving DataGrid data to Text Files
How would I go about saving Datagrid Data to a text file?
Cheers guys
Cheers guys
Re: Saving DataGrid data to Text Files
Hi FinishTheCode,
if it is a datagrid of type TABLE, then you can simply export to a text file with:
...
put the DGTEXT of grp "your datagrid here" into url("file:DG_Content.txt")
...
"the DGTEXT of grp xyz" is a TAB and CR delimited text!
Read in:
...
set the DGTEXT of grp "your datagrid here" to url("file:DG_Content.txt")
...
If it is of type FORM, then you will need to convert "the DGData of grp XYZ",
which is an array actually to a string and save that.
Drop a line if that is the case.
Best
Klaus
if it is a datagrid of type TABLE, then you can simply export to a text file with:
...
put the DGTEXT of grp "your datagrid here" into url("file:DG_Content.txt")
...
"the DGTEXT of grp xyz" is a TAB and CR delimited text!
Read in:
...
set the DGTEXT of grp "your datagrid here" to url("file:DG_Content.txt")
...
If it is of type FORM, then you will need to convert "the DGData of grp XYZ",
which is an array actually to a string and save that.
Drop a line if that is the case.
Best
Klaus