Search found 22 matches
- Sun Apr 14, 2024 6:03 pm
- Forum: Coding Questions
- Topic: Debug output failing?
- Replies: 4
- Views: 4364
Re: Debug output failing?
Thank you munfraid. It gives me an idea. But this is incredible to write such many lines of code for a single timer... In PB it is more simple.
- Fri Apr 12, 2024 2:47 am
- Forum: Coding Questions
- Topic: Debug output failing?
- Replies: 4
- Views: 4364
Re: Debug output failing?
Okay, but in this case, how to make a Timer that only executes once to have the equivalent of Wait(1000) for example? There is RemoveWindowTimer(#Window, Timer), but how to be sure that the next Timer will not be executed before the first one is terminated.Thanks.
- Thu Apr 11, 2024 3:41 pm
- Forum: Coding Questions
- Topic: Debug output failing?
- Replies: 4
- Views: 4364
Debug output failing?
In the small piece of code below, the Debug is only displayed at the end of the execution whereas it should be displayed every second. Does anyone know why?
Thanks in advance.
Procedure Wait(milliseconds)
Start = ElapsedMilliseconds()
Repeat
delay = (ElapsedMilliseconds()-Start)
Until (delay ...
Thanks in advance.
Procedure Wait(milliseconds)
Start = ElapsedMilliseconds()
Repeat
delay = (ElapsedMilliseconds()-Start)
Until (delay ...
- Tue Apr 09, 2024 10:39 am
- Forum: Coding Questions
- Topic: A question on a small working code.
- Replies: 5
- Views: 4923
Re: A question on a small working code.
Yes. Perhaps, one day, I will understand? But for now, I don't even ask myself the question.Quin wrote: Mon Apr 08, 2024 3:30 pm You're most certainly not the only one that doesn't understand this. We can run any javascript we want on page load... unless it plays sounds?![]()

- Mon Apr 08, 2024 3:08 pm
- Forum: Coding Questions
- Topic: A question on a small working code.
- Replies: 5
- Views: 4923
Re: A question on a small working code.
The ability for sounds to play has to be triggered by a user action on the page. This is incredibly annoying, but it's a limitation of the web everywhere. Part of me gets why, but it's still annoying when you're making an application that uses a lot of sounds.
All right. I don't understand why ...
- Mon Apr 08, 2024 1:59 pm
- Forum: Coding Questions
- Topic: A question on a small working code.
- Replies: 5
- Views: 4923
A question on a small working code.
I have a question. Can anyone explain to me why I have to click in the main browser window to hear the sound?
Below is the code which apparently works very well, apart from this small detail. What did I forget? Thanks in advance.
Global Start = ElapsedMilliseconds()
If InitSound()
Debug ...
Below is the code which apparently works very well, apart from this small detail. What did I forget? Thanks in advance.
Global Start = ElapsedMilliseconds()
If InitSound()
Debug ...
- Thu Mar 21, 2024 3:36 pm
- Forum: Coding Questions
- Topic: Constant visibility.
- Replies: 3
- Views: 4656
Re: Constant visibility.
Thanks to you two. I will correct my code and review my logic.

- Thu Mar 21, 2024 3:26 am
- Forum: Coding Questions
- Topic: Constant visibility.
- Replies: 3
- Views: 4656
Constant visibility.
Good morning,
I have a question about a problem with the visibility of variables and in my case, of a constant.
I have two windows that I write to two separate files. In file1.sb there is:
IncludeFile "file2.sb"
Enumeration FormWindow
#Window_1
EndEnumeration
OpenWindow(#Window_1, 0, 0, ww ...
I have a question about a problem with the visibility of variables and in my case, of a constant.
I have two windows that I write to two separate files. In file1.sb there is:
IncludeFile "file2.sb"
Enumeration FormWindow
#Window_1
EndEnumeration
OpenWindow(#Window_1, 0, 0, ww ...
- Sat Feb 03, 2024 10:36 am
- Forum: Coding Questions
- Topic: Problem porting PB to SB (DataSection, Label and Procedure)
- Replies: 2
- Views: 2493
Re: Problem porting PB to SB (DataSection, Label and Procedure)
Thank you for your answer. I have looked for a way to solve this problem and I'm unable to do this. I don't know Javascript but I have book on it.
So, I'm searching. Have you a solution to fix it, or this is a SB problem (perhaps a bug?).
Thanks.

Thanks.
- Fri Feb 02, 2024 4:32 am
- Forum: Coding Questions
- Topic: Problem porting PB to SB (DataSection, Label and Procedure)
- Replies: 2
- Views: 2493
Problem porting PB to SB (DataSection, Label and Procedure)
Good morning,
I tried to translate a small Purebasic program to Spiderbasic. I had to modify it, because some PB features are not available with SB. For example ?LABEL, which returns the address of the start of a DataSection label. I am providing you with the source of the program I am trying to ...
I tried to translate a small Purebasic program to Spiderbasic. I had to modify it, because some PB features are not available with SB. For example ?LABEL, which returns the address of the start of a DataSection label. I am providing you with the source of the program I am trying to ...