Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax, I think?
Message
 
 
To
28/11/2002 21:28:13
Smyte Smithlin
Spectrum Software, Inc.
Omro, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00728074
Message ID:
00728085
Views:
19
The single quote in the thisform.custAddress shouldn't cause such problem. Anyway, to make the code readable you can use square brackets as string delimiters.
filetext1 = ["5" "] + c67invhd.inv_cardnu + ;
	[" "] + c67invhd.inv_cardex + [" "] + allt(str(thisform.charges,8,2)) + ;
	[" "] + str(c67invhd.inv_ordnum,8,2) + [" "] + c67invhd.inv_cardap + ;
	[" "] + thisform.custAddress + ["]		
>I'm trying to write out a file with an ' in the address. I'm getting an error 1300 function name is missing. Here is my string building command just before the fwrite.
>
>filetext1 = chr(34)+"5"+chr(34)+" "+chr(34)+c67invhd.inv_cardnu+chr(34)+" "+ ; chr(34)+c67invhd.inv_cardex+chr(34)+" "+chr(34)+allt(str(thisform.charges,8,2))+chr(34) ; +" "+chr(34)+str(c67invhd.inv_ordnum,8,2)+chr(34)+" "+chr(34)+c67invhd.inv_cardap+chr(34)+" "+chr(34)+thisform.custAddress+chr(34)
>
>thisform.custAddress is the field which contains the '. I tried brackets around just that field but then of course I get "thisform.custAddress" in each record output.
>
>Any help greatly appreciated.
>
>Thanks.......Smyte
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform