Test / Preview




[1]
strX.dump( {#noRep} {,iMaxLen}) dump string to message window
  Returns strX
  #noRep Don't replace null character (default: replace char 0 with char 1)
  iMaxLen Display up to iMaxLen characters (default 4KB)
     
  Description Dumps the string to the message window.
Unless #noRep is used, the Xtra will automatically replace the null character with the character _sc(1), so that the output is not truncated by director.
If iMaxLen is specified, it will override the default limit of 4192 max characters to display.
An iMaxLen of -1 dumps the entire string.
     
  Examples put _s("one").dump().app(" two").dump().app(" three")
-- "one"
-- "one two"
-- one two three
     
  Notes  

[2]
strX.pop() display the string in a pop-up window
  Returns strX
     
  Description Displays the string in a message window.
     
  Examples _d("abc").appSC(225, 1253).appSC(226, 1251).appDC("3048").pop() --Latin, Greek, Cyrillic & Japanese
     
  Notes On Windows versions prior to w2k, unicode strings may not appear correctly.

[3]
strX.brShow( {font}) display the string in the default browser
  Returns strX
  font Font to use. Default font: Code2001 (download)
     
  Description Displays the string in a browser window.
You can use any font available font to display the string with.
The font 'Code2001' has been used as default, due to it's support of non BMP character sets, like Aegean numbers and Old Persian. 
     
  Examples _dcs(65, 66, 32, "3048", 32, "103A0").brShow() --Latin, Japanese & old Persian (UCS-4)
     
  Notes If your system is not configured to display Eastern characters, you may be prompted to install the required files (from the original OS's installation media).
Non-UCS2 characters, like the last in the above example, will not be displayed correctly if your default browser does not fully support utf-16 encoding. In such a case, non-UCS2 characters will probably appear as two default characters. The above example has been tested to display correctly under XP in Internet Explorer, but not in FireFox.