Page 1 of 1

Not a function, Array, List, Map Or Macro

Posted: Wed Dec 03, 2025 9:20 pm
by MikeGreen99
Hi.

Yesterday I used the built in FormDesigner to create a simple 2 gadget Form called 'TestForm01.pbf". When I compile/run the program, I get this:
OpenTestForm01() is Not a function, Array, List, Map Or Macro.

Here is the first portion of my program which dies on line 4
#ProgramTitle = "TestForm01.pb"
#ProgramVersion = "v1.00.0 MG"
XIncludeFile "TestForm01.pbf"
OpenTestForm01()


I tried changing line 4 to:
OpenTestForm01.pbf()
and got this error:
Structure not found :pbf
What to do ?

Thanks,
M...

Re: Not a function, Array, List, Map Or Macro

Posted: Wed Dec 03, 2025 9:34 pm
by TI-994A
MikeGreen99 wrote: Wed Dec 03, 2025 9:20 pm...the first portion of my program which dies on line 4

If OpenTestForm01() exists and is a valid window procedure in your form file, and the form file is in the same folder as your executable, this should work:

Code: Select all

#ProgramTitle = "TestForm01.pb"
#ProgramVersion = "v1.00.0    MG"
XIncludeFile "TestForm01.pbf" 
OpenTestForm01()
While WaitWindowEvent() ! #PB_Event_CloseWindow : Wend
Make sure that the snippet above is saved in the same folder as the form file, and that the form file contains a working procedure named OpenTestForm01().