Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to append from CSV where some fields have quotes
Message
 
 
À
09/08/2006 08:08:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01144038
Message ID:
01144063
Vues:
13
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform