in VB programme create all text variable like grid coloumn, all variable type is text.
and then type following code
i.e. in grid their r 4 col.
srno as string * [20]
name as string * [50]
Addr as string * [90]
mobile as string * [10]
dim i
fopen ("c:result.txt")
for i=0 to dbgrid.rows-1
srno = lset(dbgrid.textmatrix(i,0))
name =lset(dbgrid.textmatrix(i,1))
Addr =lset(dbgrid.textmatrix(i,2))
mobile =lset(dbgrid.textmatrix(i,3))
fwrite #, srno & name & Addr & mobile
next
fclose()
Last Wiki Answer Submitted: January 7, 2009 7:14 am by BPD15 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.