AMOSi:Ask Editor
Revision as of 21:42, 9 June 2008 by Spellcoder (talk | contribs) (added template with Ask Editor commands)
Returns parameters FROM the editor. If it's called inside an editor accessory, it can be used to grab the program lines directly from your current listing.
Ask Editor function[,param][,param$]
function is the NUMBER of an internal Editor command you wish to access.
param holds some optional numeric information.
param$ holds an optional string of characters.
Ask Editor commands
code | equate | parameter | result |
---|---|---|---|
1 | AEdAsk_CurrentLine | - | Returns the current line (under the cursor) |
2 | AEdAsk_ProgramName | - | Returns the name of the current program |
3 | AEdAsk_X | - | Returns the current cursor's X position |
4 | AEdAsk_Y | - | Returns the current cursor's Y position |
5 | AEdAsk_NumberOfLines | - | Returns the number of lines of the current program |
6 | AEdAsk_BlocX1 | - | Returns the X position of the start of the highlighted block (if defined) |
7 | AEdAsk_BlocY1 | - | Returns the Y position of the start of the highlighted block (if defined) |
8 | AEdAsk_BlocY2 | - | Returns the X position of the end of the highlighted block (if defined) |
9 | AEdAsk_BlocY2 | - | Returns the Y position of the end of the highlighted block (if defined) |
10 | AEdAsk_Free | - | Returns the amount of free buffer space |
11 | AEdAsk_Struc | - | (Internal use only) |
12 | AEdAsk_Token | PAR$= string to tokenise. | Tokenise the given ASCII String into AMOS source code, and returns a pointer to a buffer containing the tokenised code. |