On Fri, 10 Dec 2004 18:42:00 -0500, Ted Green wrote:
>At 03:24 PM 12/10/2004, Tony Fernandez wrote:
>>Tried to search the MACRO Language Ref Manual but can't find
>>the answer to the following.
>>How do I append special characters like TAB, NEWLINE, when
>>executing commands like reg_set(r,text,APPEND)?
>You can enter any characters in the "text" portion, even Newlines,
>which then cause the command to be several lines long.
Here an example with an additional way of doing it:
// Setting a text register with "embedded" CR/LF:
Reg_Set(2, "First line
// Setting a text register with characters by ASCII-Value(s)
// (Note: if inserting TAB's you should pay attention to the
// following Config option)
// Disable TAB expansion (and remember the original setting)
#103=Config( E_EXP_TAB, "Expand key with spaces (*)", 0 )
Type_Char(9) // insert a TAB
Type_Char(64) // insert a "@"
// Restore the TAB expansion setting:
Config( E_EXP_TAB, "Expand key with spaces (*)", #103 )
// Append normal text again
Reg_Set(2, "End", APPEND)
Unfortunately that doesn't work correctly with TABs here (6.13.1):
Type_Char(9) doesn't honor the Config(E_EXP_TAB,0) and always inserts
That seems to be a bug?!