accepttext

beasscript-logo-small

Accepts the current Value from the current Input Field of the current Form.

 

Normally, it is not necessary to call AcceptText, as the DataWindow triggers that internally.

 

In special scenarios you need to call this command.

e.g. you call a function with KEY ( KEY=F2=myscript ). Then the Input field will not lose focus and therefore the Data is not accepted.

 

Example:

 

// Retrieve-Script:
// ---------------------
key=F2=myfunction
 
global funktion myfunction
// Value of the Field has not changed at this point
messagebox=value: <myField>
// Value will be the new one
accepttext
messagebox=value: <myField>