Difference between revisions of "AMOSi:Ask Editor"

From Amiga Coding
Jump to: navigation, search
m (1 revision(s))
 
(added template with Ask Editor commands)
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
  
 
param$ holds an optional string of characters.<br />
 
param$ holds an optional string of characters.<br />
 +
 +
 +
==Ask Editor commands==
 +
{{AMOS:Ask Editor commands}}

Latest revision as of 21:42, 9 June 2008

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

codeequateparameterresult
1AEdAsk_CurrentLine-Returns the current line (under the cursor)
2AEdAsk_ProgramName-Returns the name of the current program
3AEdAsk_X-Returns the current cursor's X position
4AEdAsk_Y-Returns the current cursor's Y position
5AEdAsk_NumberOfLines-Returns the number of lines of the current program
6AEdAsk_BlocX1-Returns the X position of the start of the highlighted block (if defined)
7AEdAsk_BlocY1-Returns the Y position of the start of the highlighted block (if defined)
8AEdAsk_BlocY2-Returns the X position of the end of the highlighted block (if defined)
9AEdAsk_BlocY2-Returns the Y position of the end of the highlighted block (if defined)
10AEdAsk_Free-Returns the amount of free buffer space
11AEdAsk_Struc-(Internal use only)
12AEdAsk_TokenPAR$= string to tokenise.Tokenise the given ASCII String into AMOS source code, and returns a pointer to a buffer containing the tokenised code.