Documentation by F.Lionet
Copyright © 1993 Europress Software 1993
The AMOSPro editor contains many advanced features. One of them is the ability to launch AMOS programs as accessories.
To be an accessory a program has to respect a few rules:
If the above conditions are respected the program will have full access to the source code of the current program. This means it can edit the file, save it or do whatever necessary with it. It even has full access to the editor screen, and can even display into it!
This system is incredibly powerful. Almost anything is possible.
A few example ideas:Once your program is called as an accessory, it can use two AMOSPro instructions: Ask Editor and Call Editor.
Optional parameters returned by the editor will be found in =Param and =Param$.
All the editor calls are defined in AMOSPro_System_Equate file. You'll need to use the =Equ("") instruction to get the correct value.
This instruction is used to send commands to the editor. It acts just like a TV remote controler: making the editor cursor move, opening a window etc.
FUNCTION: the number of the function to be called, must begin with "AEd_"
PAR: an optional integer parameter, usually for requester simulated input (stated for each function).
PAR$: an optional string parameter, for example a file name.
As the name implies, this instruction is used to get information from the editor.
FUNCTION: the number of the function to be called. Must begin with "AEdAsk_"
PAR: the optional integer parameter
PAR$: the optional string parameter.
Any integer parameter is returned in =Param
Any string is returned in =Param$
After the command has been called:
=Param contains the error state: 0 if no error, <>0 if an error occured.
=Param$ is empty if no errors occured, and contains the error message if an error occured.