accepttext

beasscript-logo-small

Accept's the current Value from the current Input Field of the current Form.

 

Normally you don't need to call AcceptText. The DataWindow will trigger that internaly

 

Under some Circumstances you need to call that command.

e.g.

you call a function with KEY ( KEY=F2=myscript ) than the Input field will not lose focus and therefore the Data has not been 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>