How would you split a string with commas, containing commas!?
DIM arrVar(-1) as string
arrVar = split(strVar, ",")
To send data to a Method, I use a string with commas… nothing special.
But in this new scenario, the text that will be send to the Method also may contain text with commas included!
What shall I do? Do I use other character such as # or the star, *? These could be replaced in the string , in both ends, so to speak.
Or, simply removed…!
My project evolves HTML, keywords and such and this information is the text for TITLE., DESCRIPTION and KEYWORDS people may write to a page or a site.
Simply, all characters, such as the # are used in these places or, can easily be removed. But commas are used and that could be a problem!
Well. Depending on the kind of information… Depending on if it’s me (i.e. the software) or the user that enter and send the information, comma may work.
But in this case, and other, the information is written by the user.
Would it be possible to use a combination!?
EndOfLine + chr(9)
I shall try to make an experiment… maybe it is possible to use!
I mean, what are the odds and the need to use both EndOfLine and TAB when enter a web based form??
I tend to use tab/char(9) were I would NEVER have a tab in the test. If the text might have any character then I use obscure text such as «FieldDivider» and «EOL».