Page 1 of 1

Quick question about DB Example program

Posted: Fri Mar 28, 2025 6:47 pm
by cgseymour
Hello All,
I was just looking at the DB Example program (database.pb).
I follow the logic for checking the database and creating the database file.

What I am missing is where the window (containing the list box, menu, etc) is created.
If I open the file in PB editor and run, I get the window, but I can't seem to find the code where that is created.

I am sure I am missing something obvious, but any pointer would be greatly appreciated.

Thank you.

Chris

Re: Quick question about DB Example program

Posted: Fri Mar 28, 2025 7:11 pm
by Fips
What you see is the Debug-Output window which is triggered by

Code: Select all

While NextDatabaseRow(0)
    Debug GetDatabaseString(0, 0)
Wend
For your application you will need to create a window via OpenWindow() etc.

Re: Quick question about DB Example program

Posted: Fri Mar 28, 2025 7:57 pm
by spikey

Re: Quick question about DB Example program

Posted: Fri Mar 28, 2025 8:44 pm
by cgseymour
Thank you both for the responses.
Very helpful.

Re: Quick question about DB Example program

Posted: Sat Mar 29, 2025 11:48 am
by mk-soft
For fast view ...

Link: ShowDatabaseRows (ListIconGadget)

Re: Quick question about DB Example program

Posted: Sat Mar 29, 2025 1:10 pm
by blueb