RESULTOKTO
Syntax
Command
Mandatory parameter Optional parameter Mandatory keyword Optional keyword |
RESULTOKTO <Variable>
Description
Directs the result status of a command to the specified boolean or alphanumeric (length 5) variable (instead of using the system item RESOK). The RESULTOKTO must always be specified on the same line as the concerned command.
Diagram

Returned value type
None
Parameters
| Parameter | Description |
| <Variable> | The name of a boolean or alphanumeric (length 5) variable. |
Remarks
When RESULTOKTO is used on an alphanumeric of length 5 True is represented by spaces (i.e. no value) and False is represented by asterisks (i.e. '*****').
RESULTOKTO can be used in conjunction with one of the following commands:
- DATERESULT. To assign a date to a DATERESULT format.
- COMPARE...ENDCOMPARE.
- <query>.GETFIRST
- LOOP <query>
- READFILE
- Assignments (e.g. a := b / c)
- FromJson and FromXml functions for lists and classes.
| When RESULTOKTO is used the value of RESOK is left unchanged. |
Example
q_schip.index (fschip)
q_schip.equal (sn-schip)
q_schip.resultokto (ga-status)
q_schip.getfirst ()
NumC := NumA / NumB resultokto (ga-resultok)
q_schip.equal (sn-schip)
q_schip.resultokto (ga-status)
q_schip.getfirst ()
NumC := NumA / NumB resultokto (ga-resultok)
