Managing Long IDs?

Mark Wieder mwieder at ahsoftware.net
Mon Jul 15 19:08:57 EDT 2013


Scott-

Monday, July 15, 2013, 3:12:00 PM, you wrote:

> I recently worked with a client to trace some non-functioning behavior in
> a stack to the use of commas in a folder name where the user placed the
> application and support files. I always use long ids for object
> references, so of course my scripts tripped up where the default
> itemDelimiter (comma) was used.

Commas in a folder name? WTFclients?

Long ids have the file path enclosed in quotes, so ideally the comma
there shouldn't be an issue unless you're trying to pick the path
apart. I've had similar situations with commas in property names (I'm
looking at you, IDE) and dealt with it by

replace comma with "_MAGIC_COMMA_" in tString

and then done the reverse replacement on the way out.

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list