Declare doesn't match with real Procedure
Posted: Thu Apr 20, 2023 2:31 pm
Very much on the toe of the learning curve here, but I hope somebody can help me here:
This code gives the 'Declare doesn't match with real Procedure' error
Can some kind soul help?
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