Hello:
I'm current using 4.8 to fax files from the A:\ to various companies. I've created a radiobutton for every company including a ALL button to fax to the entire list. If I chose each company individually the program works fine but the ALL function does not. The ALL program performs a search on the A:\ but doesn't want to start the fax process. Here is my code for the ALL function:
proc SendToAll
string fname = "a:\*.doc"
string coname = ""
string temp
long sizeoffile = 0 ;to check that filesize is not 0 before sending
if findfirst fname
fname = $FILENAME
coname = ""
coname = GetConameFname(Coname, Fname)
if not nullstr coname
if not nullstr fname
fileget fname SIZE sizeoffile
if sizeoffile > 0
temp = "a:\*.doc"
strcat temp fname
faxsend DIALDIR coname SINGLE temp
SendTheFax(fname,coname)
pause 30
endif
endif
endif
; set coname based off the filename use SendTheFax function to send the faxes
while findnext
fname = $FILENAME
coname = ""
coname = GetConameFname(Coname, Fname)
if not nullstr Coname
if not nullstr Fname
fileget fname SIZE sizeoffile
if sizeoffile > 0
temp = "a:\*.doc"
strcat temp Fname
faxsend DIALDIR coname SINGLE temp
SendTheFax(fname,coname)
pause 30
endif
endif
endif
endwhile
else
usermsg "No files on disk!"
endif
endproc
Any help would be appreciated.
Thanks,
Brad
I'm current using 4.8 to fax files from the A:\ to various companies. I've created a radiobutton for every company including a ALL button to fax to the entire list. If I chose each company individually the program works fine but the ALL function does not. The ALL program performs a search on the A:\ but doesn't want to start the fax process. Here is my code for the ALL function:
proc SendToAll
string fname = "a:\*.doc"
string coname = ""
string temp
long sizeoffile = 0 ;to check that filesize is not 0 before sending
if findfirst fname
fname = $FILENAME
coname = ""
coname = GetConameFname(Coname, Fname)
if not nullstr coname
if not nullstr fname
fileget fname SIZE sizeoffile
if sizeoffile > 0
temp = "a:\*.doc"
strcat temp fname
faxsend DIALDIR coname SINGLE temp
SendTheFax(fname,coname)
pause 30
endif
endif
endif
; set coname based off the filename use SendTheFax function to send the faxes
while findnext
fname = $FILENAME
coname = ""
coname = GetConameFname(Coname, Fname)
if not nullstr Coname
if not nullstr Fname
fileget fname SIZE sizeoffile
if sizeoffile > 0
temp = "a:\*.doc"
strcat temp Fname
faxsend DIALDIR coname SINGLE temp
SendTheFax(fname,coname)
pause 30
endif
endif
endif
endwhile
else
usermsg "No files on disk!"
endif
endproc
Any help would be appreciated.
Thanks,
Brad