This appears to be related to the other bug I posted about recently: trouble after copy-pasting from Excel. Why the heck is Revolution accepting wide and or control characters when I paste into the IDE? This is bad. I am supposed to deliver an app today (yesterday actually) and instead I have to manually go through and reset the content of many, many fields.

Here is some debugging from the message box to show how bizarre this is.

> put fld 4
The facility has typical visitor facility functions, but will also be a hub for multiple modes of transportation requiring bus, train, and/or boat facilities. An example of this type of facility is the Zion National Park Visitor Center.


> put the length of fld 4
475

> put safeString(fld 4)
The facility has typical visitor facility functions, but will also be a hub for multiple modes of transportation requiring bus, train, and/or boat facilities. An example of this type of facility is the Zion National Park Visitor Center.


-- It appears to be the same text, right? Wrong!
> put the length of safeString(fld 4)
238

That it is 1/2 the length corresponds to what I am seeing on Win32- every other character is a box- "unknown" char.

function safeString pStr
  -- 011 octal = tab
  -- 012 octal = newline (in transcript "return", "linefeed")
  -- 040 - 167 = space to "~"
  -- ignore 177+ assume they won't cause problems
  return replaceText(pStr, "([\000-\010]|[\013-\037])+", empty)
end safeString


Alex Rice <[EMAIL PROTECTED]> | Mindlube Software | <http://mindlube.com>


what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to