Changes between Initial Version and Version 1 of FAQ/ARexx Scripting


Ignore:
Timestamp:
May 11, 2012, 3:52:45 PM (3 years ago)
Author:
damato
Comment:

initial version

Legend:

Unmodified
Added
Removed
Modified
  • FAQ/ARexx Scripting

    v1 v1  
     1[[TOC(titleindex, heading=FAQ Contents, notitle, depth=0, General Questions, Installing YAM, Using YAM, ARexx Scripting)]]
     2
     3= [wiki:"ARexx Scripting" ARexx Scripting] =
     4[[TOC(inline,noheading)]]
     5
     6== The "WRITEEDITOR TEXT" arexx command doesn't seem to work? ==
     7If you are having trouble getting the WRITEEDITOR TEXT arexx command to work as expected and your script always returns an error similar to that one:
     8
     9{{{
     101 *-* WRITEDITOR TEXT Hello World;
     11+++ Command returned 10
     12}}}
     13
     14then chances are high that you simply missunderstood or missread the documentation about the WRITEEDITOR command in the YAM amigaguide documentation. So please note that using the TEXT attribute of the WRITEEDITOR command implies to take care of a special text quoting as otherwise YAM isn't able to identfy what the attribute and what the actual text is you supplied to the WRITEEDITOR arexx command.
     15
     16For example, if you want to put the text "Hello World!" into an already opened write window in YAM you are ought to have you arexx script designed like:
     17
     18{{{
     19/* My script */
     20ADDRESS YAM;
     21MAILWRITE WINDOW 0;
     22'WRITEEDITOR "TEXT Hello World!"'
     23}}}
     24
     25Please take special attention on the used quotating marks (' and ") used on the WRITEEDITOR command. Any other combination of these quotation marks will actually result in the WRITEEDITOR command to return the above mentioned error. However, if you want to just issue the e.g. CLEAR attribute you can also simply use "WRITEEDITOR CLEAR" without any quotating marks. The special quotation is only required for the TEXT attribute.
     26
     27