Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
cString = ""
nFieldNumber = AFIELDS(aFieldArray)
FOR nCount = 1 TO nFieldNumber
cString = cString + aFieldArray[nCount, 1] + CHR(9)
NEXT nCount
cString = LEFT(cString, LEN(cString) - 1) + CHR(13) + CHR(10)
USE temp.dbf
CREATE CURSOR myCursor (field1 c(10),field2 c(10), field3 c(10))
INSERT INTO myCursor (field1,field2,field3) ;
VALUES ('field1','field2','field3')
SELECT myCursor
APPEND FROM temp
COPY TO temp.txt DELIMITED WITH TAB
close all
lcHandle=fcreate([MyOutput.txt])
lcString=[]
USE GETFILE('dbf')
FOR ln = 1 TO FCOUNT()
lcString=lcString+CHR(9)+FIELD(ln)
ENDFOR
lcString=RIGHT(lcString,LEN(lcString)-1)
FPUTS(lcHandle,lcString)
SCAN
IF MOD(RECNO(),1000)=0
WAIT WINDOW NOWAIT [On record ]+TRANSFORM(RECNO())
ENDIF
lcString=[]
FOR ln = 1 TO FCOUNT()
IF VARTYPE(EVALUATE(FIELD(ln)))=[D]
lcString=lcString+CHR(9)+TRANSFORM(MONTH(EVALUATE(FIELD(ln))))+[/]+TRANSFORM(DAY(EVALUATE(FIELD(ln))))+[/]+TRANSFORM(YEAR(EVALUATE(FIELD(ln))))
ELSE
lcString=lcString+CHR(9)+IIF(RTRIM(TRANSFORM(EVALUATE(FIELD(ln))))==[0],[],RTRIM(TRANSFORM(EVALUATE(FIELD(ln)))))
ENDIF
ENDFOR
lcString=RIGHT(lcString,LEN(lcString)-1)
FPUTS(lcHandle,lcString)
ENDSCAN
FCLOSE(lcHandle)