OpenNameWindow() not working
Posted: Sat May 24, 2025 12:01 pm
Hi,
I am trying out PureBasic.
So I want to work with multiple forms.
I created a project and added two files, Main.pb and a MainWindow.pbf just like the example.
The second form is not created yet so I commented it out. I would think that by running the Main.pb the form MainWindow.pbf would open.
https://www.purebasic.com/documentation ... _form.html.
But I get a nasty compiler error, 'OpenMainWindow() is not a function, arry, list or macro.'
I am on a Linux machine with Ubuntu 22.04.5 LTS with version 6.20 demo from PureBasic.
What am I doing wrong? The example looks easy...
Thanks in advance
I am trying out PureBasic.
So I want to work with multiple forms.
I created a project and added two files, Main.pb and a MainWindow.pbf just like the example.
The second form is not created yet so I commented it out. I would think that by running the Main.pb the form MainWindow.pbf would open.
https://www.purebasic.com/documentation ... _form.html.
But I get a nasty compiler error, 'OpenMainWindow() is not a function, arry, list or macro.'
I am on a Linux machine with Ubuntu 22.04.5 LTS with version 6.20 demo from PureBasic.
What am I doing wrong? The example looks easy...
Code: Select all
XIncludeFile "MainWindow.pbf" ; Include the first window definition
; XIncludeFile "DateWindow.pbf" ; Include the second window definition
OpenMainWindow() ; Open the first window. This procedure name is always 'Open' followed by the window name
; OpenDateWindow() ; Open the second window