Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to parse a string for a sign
Message
From
23/05/2003 04:46:05
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to parse a string for a sign
Miscellaneous
Thread ID:
00792098
Message ID:
00792098
Views:
59
Hi,

I try to find split a given String into parts.

The string is a SELECT SQL from CURSORGETPROP('SQL',ALIAS())

I like to add a CHR(13) after each field.

So as far as I understand i need to replace al ',' with ','+CHR(13), but only those that are not wraped in "" '' [] ().

How do I find those signs?

Example:
Source = "SELECT aField, bField AS Field2, [, ]+PADR(cField,2) AS cField ..."
Result: "SELECT aField,"+CHR(13)+" bField AS Field2,"+CHR(13)+" [, ]+PADR(cField,2) AS cField ..."
Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Next
Reply
Map
View

Click here to load this message in the networking platform