Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to append from CSV where some fields have quotes
Message
 
 
To
09/08/2006 08:08:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01144038
Message ID:
01144063
Views:
18
Hi Cetin,

It certanly preserves double quotes as requested by OP and fields width should be adjusted for that. The enclousing quotes can be easily removed
FOR i=1 TO FCOUNT()
	IF TYPE(FIELD(i)) = "C"
		REPLACE ALL (FIELD(i)) WITH ALLTRIM(EVALUATE(FIELD(i)), 0,["], SPACE(1))
	ENDIF
ENDFOR
>I think you might loose data with this one and it would keep dblquotes from text, no?
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform