I'm trying to create a header row for a comma delimited file using STRTOFILE(), but the variable for the cExpression property is greater than 255 characters. Is there a workaround?
Chandler
I ran over my dogma with karma!
Code:
&& Header Row
hdr='"FIRST","LAST","OR CURRENT RESIDENT","STREET","CITY","ST","ZIP4","JOBNUM","PART","OPT. ENDORSEMENT LINE","POSTNET BARC","SEQUENTI","SCH","STUDENTID","VAR1","VAR2","VAR3","ADKEY","CC","PHONE","URL","INTEREST","SEGMENT","SHELL","S","SCH_PRT","SCH_NAME","PR","VENDOR","V2ID","V3ID","GEN"'
hstr=hdr+chr(13)+chr(10)
&& Body
fstr=rstr&&+chr(13)+chr(10)
&& File name from array
nname = print_jobs(acnt,2)
&& Create delimited file
STRTOFILE(hstr,left(nname,len(nname)-4),.f.)
STRTOFILE(fstr,left(nname,len(nname)-4),.t.)
Chandler
I ran over my dogma with karma!