This code gives the 'Declare doesn't match with real Procedure' error
Code: Select all
XIncludeFile "//Users/stolzy/Documents/PureBasic/Forms Experimentation/temp/MyForm.pbf"
OpenJS_Window()
Procedure.s StringGadgetProcedure(EventType)
TextInput.s = GetGadgetText(JS_String_Gadget)
ProcedureReturn TextInput.s
EndProcedure
Repeat
event=WaitWindowEvent()
JS_Window_Events(event)
Until event=#PB_Event_CloseWindow
Debug TextInput.s