PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → WB12 - How to specify a /n (escape new line) in a string
WB12 - How to specify a /n (escape new line) in a string
Débuté par Joel, 13 oct. 2009 22:32 - 3 réponses
Posté le 13 octobre 2009 - 22:32
Hi all -
I am trying to pull apart an address in the format "123 Main Street Manchester, CT 06118.
I need to sAddressPart1 = ExtractString(sAddress, 1, ) but the codes throws an error if I use , /n, n, "", "/n", '' or '/n'. How can I include the "new line" escape character in the ExtractString statement?
Side note - there used to be a there instead of the , and I used CR just fine, but the data format I am importing seems to have changed.
Posté le 13 octobre 2009 - 22:32
Hi Joel,
I don't know if I understand your question right, but have you tried ESC+CR ?
In WinDev, I should use
ExtractString(sAddress,1," ")
Posté le 14 octobre 2009 - 00:13
Use Charact(10).
Arie
Posté le 14 octobre 2009 - 00:13
Thank You!!!!
Works perfect!