I am wanting to write a routine that takes a table name as a parameter and then will export all of the data. Something like this:
lparameters cTable
if used(cTable) = .f.
x3winmsg("The Table "+alltrim(cTable)+" is not Opened")
return .f.
else
nFile = fcreate(cTable+".exp")
for nCntr = 1 to fcount(cTable)
fputs(nFile,?)
endfor
endif
I don't know the syntax in VFP for referencing a field when I don't know the name of the field. In other words to replace the question mark in the preceeding code.
Thanks,
Paul