I will be writing a program that will allow the user to input details to quite a simple 'Form' and then send the results to 4 places.
Due to the 4 places not being within the WIFI of the building, I will most likely email a CSV to the 4 places.
I'm just looking to know, is there a safe and ...
Search found 305 matches
- Sun Oct 12, 2025 12:37 am
- Forum: Coding Questions
- Topic: Emailling from PB.
- Replies: 1
- Views: 296
- Wed Aug 06, 2025 5:57 am
- Forum: Coding Questions
- Topic: Storing Matrices for Multiplying
- Replies: 2
- Views: 251
Storing Matrices for Multiplying
Is there a most suitable way of storing multiple values related to one entry?
For example if I have a Matrix of 1 row by 3 columns, and I want to multiply that by a Matrix of 3 rows by 3 columns, I will want to access the values individually of each Matrix.
Initially I thought of storing the ...
For example if I have a Matrix of 1 row by 3 columns, and I want to multiply that by a Matrix of 3 rows by 3 columns, I will want to access the values individually of each Matrix.
Initially I thought of storing the ...
- Mon Aug 04, 2025 6:50 pm
- Forum: 3D Programming
- Topic: Drawing a 3D Wireframe
- Replies: 3
- Views: 851
Re: Drawing a 3D Wireframe
Thanks, i'll be much bettwr off looking at an example for my first go.
Does anyone have an example of a model made from a similar list of vertices?
Does anyone have an example of a model made from a similar list of vertices?
- Mon Aug 04, 2025 11:57 am
- Forum: 3D Programming
- Topic: Drawing a 3D Wireframe
- Replies: 3
- Views: 851
Drawing a 3D Wireframe
I haven't looked at 3D in Purebasic before, I am interested in plotting the Utah Teapot, and thought it should be easiest in 3D first.
I will want to work backwards then, and plot it with 2D Drawing tools to then plot it on old computers.
I really want to see how each of the vertices coordinates ...
I will want to work backwards then, and plot it with 2D Drawing tools to then plot it on old computers.
I really want to see how each of the vertices coordinates ...
- Sat Jun 07, 2025 10:37 am
- Forum: Coding Questions
- Topic: Possible bug.
- Replies: 5
- Views: 825
Re: Possible bug.
This can be looked at in at least 2 ways which seem problematic:
1. The IDE allows 2 open Purebasic files to have control over the running compilation.
2. The other impication that number 1 has is that the user can not edit either of the 2 Purebasic files even though only one has been run.
1. The IDE allows 2 open Purebasic files to have control over the running compilation.
2. The other impication that number 1 has is that the user can not edit either of the 2 Purebasic files even though only one has been run.
- Fri Jun 06, 2025 11:25 am
- Forum: Coding Questions
- Topic: Possible bug.
- Replies: 5
- Views: 825
Re: Possible bug.
I have recreated it in a simple way.
Save this program:
OpenWindow(0,0,0,100,100,"New")
Repeat
Event = WaitWindowEvent()
Select Event
EndSelect
Case #PB_Event_Menu
Select EventMenu()
EndSelect
EndSelect
Until Event = #PB_Event_CloseWindow Or quit=#True
Save it as New1.pb
Run that ...
Save this program:
OpenWindow(0,0,0,100,100,"New")
Repeat
Event = WaitWindowEvent()
Select Event
EndSelect
Case #PB_Event_Menu
Select EventMenu()
EndSelect
EndSelect
Until Event = #PB_Event_CloseWindow Or quit=#True
Save it as New1.pb
Run that ...
- Thu Jun 05, 2025 9:40 pm
- Forum: Coding Questions
- Topic: Possible bug.
- Replies: 5
- Views: 825
Re: Possible bug.
I was running one instance of the IDE, just the 2 windows on it that I described.
- Wed Jun 04, 2025 12:17 am
- Forum: Coding Questions
- Topic: Possible bug.
- Replies: 5
- Views: 825
Possible bug.
Should it be considered a bug if I'm doing some testing on programs. I run a test program that does something, lets say it works out values of PI and draws them to screen (anything that can continue forever), something that does not end. Then I stop the program and amend it to Print out via Serial ...
- Sat Apr 05, 2025 11:03 pm
- Forum: Coding Questions
- Topic: Serial Communication locking up.
- Replies: 11
- Views: 1317
Re: Serial Communication locking up.
I am trying to make this into a reliable Serial port send program, but over the 16384 bytes, it seems to finish and the old computer (Z88) has only received around 16348 bytes (i checked for that obvious mis-spelling of the number, but it is always around 30 bytes short or missing).
I use this now ...
I use this now ...
- Sat Apr 05, 2025 9:23 pm
- Forum: Coding Questions
- Topic: Check progress of WriteSerialPortData()
- Replies: 1
- Views: 166
Check progress of WriteSerialPortData()
I am using WriteSerialPortData(1,*sbuf,16384) to write 16384 bytes to an old computer, and I can actually list the bytes as they arrive on it.
It is the first time I am trying this with the old computer and I would like to keep an eye on it, and see if it is working correctly, once the bytes are on ...
It is the first time I am trying this with the old computer and I would like to keep an eye on it, and see if it is working correctly, once the bytes are on ...
- Sat Mar 29, 2025 12:45 am
- Forum: Coding Questions
- Topic: Calculating with large numbers (Fibonacci)
- Replies: 13
- Views: 897
Re: Calculating with large numbers (Fibonacci)
If you don't want to code it yourself, and feel like tidying up some terrible code, I have this I wrote for ZX Spectrum, and just converted quickly.
Scroll it if you want to look, and don't if you don't :-).
Your code has an amusing result; if that was the goal, it's not so catastrophic ...
- Fri Mar 28, 2025 7:15 pm
- Forum: Coding Questions
- Topic: Calculating with large numbers (Fibonacci)
- Replies: 13
- Views: 897
Re: Calculating with large numbers (Fibonacci)
If you don't want to code it yourself, and feel like tidying up some terrible code, I have this I wrote for ZX Spectrum, and just converted quickly.
Scroll it if you want to look, and don't if you don't :-).
asc0= Asc ("0")
a$="1"
b$="1"
For t=0 To 10000
carry=0
la=Len ...
Scroll it if you want to look, and don't if you don't :-).
asc0= Asc ("0")
a$="1"
b$="1"
For t=0 To 10000
carry=0
la=Len ...
- Fri Mar 28, 2025 6:17 pm
- Forum: Coding Questions
- Topic: Calculating with large numbers (Fibonacci)
- Replies: 13
- Views: 897
Re: Calculating with large numbers (Fibonacci)
To add numbers together like that (Fibonacci sequence just adds the previous 2 numbers), you just have to add the individual digits (in string format) and carry the tens, like you would add in primary school.
Using strings means that you can have any length of number you want.
This gives a method ...
Using strings means that you can have any length of number you want.
This gives a method ...
- Thu Mar 27, 2025 12:34 am
- Forum: Coding Questions
- Topic: Action when hovering over a ButtonGadget.
- Replies: 4
- Views: 303
Re: Action when hovering over a ButtonGadget.
2 good options, thanks guys.
- Wed Mar 26, 2025 11:34 pm
- Forum: Coding Questions
- Topic: Action when hovering over a ButtonGadget.
- Replies: 4
- Views: 303
Action when hovering over a ButtonGadget.
Is there a way to know when the mouse is over a button gadget in Windows, so that I can perform another piece of code.
Gadgettooltip is similar to what I want, but I would like to use my own code, instead of just the standard tooltip.
Gadgettooltip is similar to what I want, but I would like to use my own code, instead of just the standard tooltip.