Quote from
fkapnist on December 1, 2020, 9:17 am
In this example if a user pastes Hello into TextEntry1, a TextChange action is executed :
------
If "[TextEntry1]" "=" "Hello"
GotoLine "HelloWorld"
Else
Exit "" ""
EndIf
:HelloWorld
AlertBox "" "You wrote Hello"
StrReplace "[TextEntry1]" "Hello" "Hello World" "[TextEntry1]" ""
Return
----------------------------------
An Alert Box pops up and the text automatically changes to Hello World. Nothing happens if any text is typed, Hello must be pasted-in or the program will exit.
In this example if a user pastes Hello into TextEntry1, a TextChange action is executed :
------
If "[TextEntry1]" "=" "Hello"
GotoLine "HelloWorld"
Else
Exit "" ""
EndIf
:HelloWorld
AlertBox "" "You wrote Hello"
StrReplace "[TextEntry1]" "Hello" "Hello World" "[TextEntry1]" ""
Return
----------------------------------
An Alert Box pops up and the text automatically changes to Hello World. Nothing happens if any text is typed, Hello must be pasted-in or the program will exit.