hoerbie is correct, your include file creates Window2 first then you try to activate Window1 before the constant or Window has been created.
Also your enumeration is giving both Windows the exact same value so after Window1 is created, Window2 will no longer be valid.
Search found 170 matches
- Thu Mar 21, 2024 1:52 pm
- Forum: Coding Questions
- Topic: Constant visibility.
- Replies: 3
- Views: 172
- Thu Feb 15, 2024 2:22 pm
- Forum: Coding Questions
- Topic: open a database
- Replies: 15
- Views: 765
Re: open a database
Did you look at the 2 examples in the Help file under Database...
Database.sb
DatabasePersistent.sb
That would be the best place to start to get a good understanding.
Database.sb
DatabasePersistent.sb
That would be the best place to start to get a good understanding.
- Sat Jan 27, 2024 3:53 pm
- Forum: Coding Questions
- Topic: Translating Purebasic in Spiderbasic problem
- Replies: 6
- Views: 784
Re: Translating Purebasic in Spiderbasic problem
Sorry, I meant search this forum with the keyword: DataSection
But searching the help file as Peter suggests will also show Spider basic has fewer options than PureBasic when using DataSection
But searching the help file as Peter suggests will also show Spider basic has fewer options than PureBasic when using DataSection
- Sat Jan 27, 2024 2:01 pm
- Forum: Coding Questions
- Topic: Translating Purebasic in Spiderbasic problem
- Replies: 6
- Views: 784
Re: Translating Purebasic in Spiderbasic problem
You might want to search the keyword: DataSection
SpiderBasic can't do everything the same as PureBasic
SpiderBasic can't do everything the same as PureBasic
- Sun Dec 24, 2023 2:04 am
- Forum: Coding Questions
- Topic: Connecting SpiderBasic with PostgreSQL (and maybe PureBasic)
- Replies: 8
- Views: 8890
Re: Connecting SpiderBasic with PostgreSQL (and maybe PureBasic)
For simply testing on a local computer I would use something like CivetWeb https://github.com/civetweb/civetweb/releases It's about 1MB and doesn't need to be permanently installed, just run the EXE You can set any folder to be the ROOT web folder and you can put the cgi in that same folder, just co...
- Fri Dec 22, 2023 5:13 pm
- Forum: Coding Questions
- Topic: Connecting SpiderBasic with PostgreSQL (and maybe PureBasic)
- Replies: 8
- Views: 8890
Re: Connecting SpiderBasic with PostgreSQL (and maybe PureBasic)
If you are using 127.0.0.1 this tells us you have a web server set up on localhost but you don't say what web server you are running or if you have the web server set up to run EXE's from the cgi-bin folder.
- Wed Sep 27, 2023 1:03 pm
- Forum: Tricks 'n' Tips
- Topic: LoadScript (CSS)
- Replies: 5
- Views: 10979
Re: LoadScript (CSS)
Unfortunately SB's SetGadgetColor command becomes no longer usable.
- Fri Jul 07, 2023 1:17 pm
- Forum: Coding Questions
- Topic: SetGadgetItemText() for TreeGadget have no effect?
- Replies: 2
- Views: 4053
Re: SetGadgetItemText() for TreeGadget have no effect?
It actually changes the text of the tree gadget, it just doesn't show it. If OpenWindow(0, 0, 0, 355, 180, "TreeGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) TreeGadget(1, 10, 10, 160, 160) AddGadgetItem (1, -1, "Normal Item "+Str(a)) Debug GetGadgetItemText(1,0) Se...
- Sun Jun 25, 2023 11:16 pm
- Forum: Coding Questions
- Topic: Increase size window
- Replies: 3
- Views: 1134
Re: Increase size window
Did you maybe try the #PB_Window_Background flag to fill the entire window?
Code: Select all
OpenWindow(0,0,0,0,0,"Menu",#PB_Window_Background)
- Fri Jun 23, 2023 3:45 pm
- Forum: Coding Questions
- Topic: Link or Close
- Replies: 9
- Views: 2539
Re: Link or Close
Lines beginning with ! are inline javascript, they are not native SpiderBasic commands.