Quick question about DB Example program

Just starting out? Need help? Post your questions and find answers here.
cgseymour
New User
New User
Posts: 2
Joined: Fri Mar 28, 2025 6:42 pm

Quick question about DB Example program

Post 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
Fips
User
User
Posts: 35
Joined: Sun Feb 20, 2022 1:03 pm

Re: Quick question about DB Example program

Post 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.
User avatar
spikey
Enthusiast
Enthusiast
Posts: 750
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: Quick question about DB Example program

Post by spikey »

cgseymour
New User
New User
Posts: 2
Joined: Fri Mar 28, 2025 6:42 pm

Re: Quick question about DB Example program

Post by cgseymour »

Thank you both for the responses.
Very helpful.
User avatar
mk-soft
Always Here
Always Here
Posts: 6207
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Quick question about DB Example program

Post by mk-soft »

For fast view ...

Link: ShowDatabaseRows (ListIconGadget)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
blueb
Addict
Addict
Posts: 1111
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Quick question about DB Example program

Post by blueb »

- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Post Reply