Not a function, Array, List, Map Or Macro

You need some new stunning features ? Tell us here.
MikeGreen99
New User
New User
Posts: 3
Joined: Wed Dec 03, 2025 5:40 pm

Not a function, Array, List, Map Or Macro

Post 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...
User avatar
TI-994A
Addict
Addict
Posts: 2764
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

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

Post 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().
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
Post Reply