replace "A" with "B" in group "DataGrid 1"

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DavJans
Posts: 275
Joined: Thu Dec 12, 2013 4:21 pm

replace "A" with "B" in group "DataGrid 1"

Post by DavJans » Thu Nov 20, 2014 5:41 pm

Anyone have a quick answer for this one?

In my data there are a lot of ' (feet) and " (inches) and I have been replacing those in order to save to my database. How do I replace those replacements in a Data Grid so that it looks normal?
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: replace "A" with "B" in group "DataGrid 1"

Post by dunbarx » Thu Nov 20, 2014 7:26 pm

Hi.

You can always substitute an invisible char for each one. These will not be seen, but are there nonetheless, and can always be referenced when you want to reinstate the originals. Maybe, depending on your machine and OS, numToCha(1) or numToChar(24)?

You would, of course, do something like:

Code: Select all

replace quote in yourText with numToChar(24)
and vice-versa.

If the issue is that quotes delimit text in LC, then generically, you can substitute curly quotes for ordinary ones. These will not be seen as "delimiters" by LC. For the single quote, perhaps numToChar(212)?

Craig Newman

Post Reply