C1Awk Reference > C1Awk Properties > Action Property |
Sets an action to be performed by the control.
[form!]C1Awk.Action = ActionSettings
The Action property is used to start and control scanning of text files.
The effect of the settings for the Action property are described below:
0 - acScan
This setting causes Awk to perform the following actions:
1 - acNextLine
This setting action causes Awk to read the next line from the current data file. It can be useful in the routine that handles the Scan event. If the file is not open when you set Action to acNextLine, Awk will open it for you, and you must close the file when you are done with it by setting the Action property to acClose.
2 - acClose
This setting causes Awk to close the current file and stop scanning it.
ActionSettings (Enumeration)