5 years and still going.
Forum threads for PB have a longer lifespan than most JavaScript frameworks.
Search found 1255 matches
- Mon Dec 16, 2024 8:52 pm
- Forum: Off Topic
- Topic: Why I left PureBasic
- Replies: 35
- Views: 34014
- Wed Oct 19, 2022 9:53 am
- Forum: Coding Questions
- Topic: Large amount of data. Suggestions anyone?
- Replies: 7
- Views: 1465
Re: Large amount of data. Suggestions anyone?
Have you tried using the Regular Expression library?
https://www.purebasic.com/documentation ... index.html
https://www.purebasic.com/documentation ... index.html
- Wed Nov 13, 2019 5:52 pm
- Forum: General Discussion
- Topic: PBCompiler.exe - need to manual use
- Replies: 6
- Views: 3206
Re: PBCompiler.exe - need to manual use
There's a post in the Visual Studio forums for nearly the exact same error in Visual C++ code: https://social.msdn.microsoft.com/Forums/vstudio/en-US/4a571217-1f3b-44cc-adb2-96cf39c876e3/lnk4229-warnings?forum=vcgeneral
The answer there is that there is a bad pragma comment: https://docs.microsoft ...
The answer there is that there is a bad pragma comment: https://docs.microsoft ...
- Fri Jun 28, 2019 2:47 pm
- Forum: General Discussion
- Topic: Need some more database info querying advice
- Replies: 7
- Views: 3675
Re: Need some more database info querying advice
If the Contact Types are fixed then a separate join for each type will do the job. Then it's just a simple 121 mapping between query and columns.
If you want it to be dynamic you can generate the SQL. It follows a clear repeating pattern.
-- Create The Tables
Drop Table If Exists People;
Create ...
If you want it to be dynamic you can generate the SQL. It follows a clear repeating pattern.
-- Create The Tables
Drop Table If Exists People;
Create ...
- Fri Jun 28, 2019 12:59 pm
- Forum: General Discussion
- Topic: Need some more database info querying advice
- Replies: 7
- Views: 3675
Re: Need some more database info querying advice
Hi GedB,
You've demonstrated how to concatenate strings in SQL but you haven't demonstrated how to marshall the contactdetails into the relevant contacttype column in a ListIconGadget. So what's the next stage, using PB to chop apart and parse subsections of the string you've just concatenated?
I ...
You've demonstrated how to concatenate strings in SQL but you haven't demonstrated how to marshall the contactdetails into the relevant contacttype column in a ListIconGadget. So what's the next stage, using PB to chop apart and parse subsections of the string you've just concatenated?
I ...
- Fri Jun 28, 2019 9:29 am
- Forum: General Discussion
- Topic: Need some more database info querying advice
- Replies: 7
- Views: 3675
Re: Need some more database info querying advice
Hi Fangbeast,
Let me pitch a SQL approach to this problem. Creating a single string out of multiple joined lines is super easy, barely and inconvenience.
What you need is SQLite's group_concact function: https://www.sqlite.org/lang_aggfunc.html#groupconcat
I'm just going to share the SQL with you ...
Let me pitch a SQL approach to this problem. Creating a single string out of multiple joined lines is super easy, barely and inconvenience.
What you need is SQLite's group_concact function: https://www.sqlite.org/lang_aggfunc.html#groupconcat
I'm just going to share the SQL with you ...
- Tue Jun 25, 2019 3:07 pm
- Forum: Off Topic
- Topic: Why I left PureBasic
- Replies: 35
- Views: 34014
Re: Why I left PureBasic
Just give us LLVM - can you imagine the possibilities?skywalk wrote:
I am drooling over what v6 might offer(LLVM,ARM targets,RaspberryPI), but I still crank along nicely with all incarnations to date.
Sent from my iPhone using Tapatalk
- Sat Jun 08, 2019 8:52 am
- Forum: Coding Questions
- Topic: SQLite using Variables with SELECT and WHERE
- Replies: 10
- Views: 4408
Re: SQLite using Variables with SELECT and WHERE
Format like sprintf
Link: https://www.purebasic.fr/english/viewtopic.php?f=12&t=32026
Define column.s = "Pron_1_Pers_Sg"
Define goal.s = "gender"
Define constrain.s = "Mann"
sql.s= Format("SELECT %s FROM Data where %s = '%s'", @column, @goal, @constrain)
Debug sql
;DatabaseQuery(..., sql ...
Link: https://www.purebasic.fr/english/viewtopic.php?f=12&t=32026
Define column.s = "Pron_1_Pers_Sg"
Define goal.s = "gender"
Define constrain.s = "Mann"
sql.s= Format("SELECT %s FROM Data where %s = '%s'", @column, @goal, @constrain)
Debug sql
;DatabaseQuery(..., sql ...
- Sat May 18, 2019 9:51 am
- Forum: Off Topic
- Topic: The importance of Purebasic ( and languages like it )
- Replies: 7
- Views: 4449
The importance of Purebasic ( and languages like it )
Here’s a recent video of a talk by games developer Jonathan Blow: https://m.youtube.com/watch?v=pW-SOdj4Kkk
He talks about how science and craft go into decline. He shows how this happened in the past, and how it is happening to software right now.
I’ve witnessed this happening over my two ...
He talks about how science and craft go into decline. He shows how this happened in the past, and how it is happening to software right now.
I’ve witnessed this happening over my two ...
- Fri May 17, 2019 2:03 pm
- Forum: Coding Questions
- Topic: SQLite using Variables with SELECT and WHERE
- Replies: 10
- Views: 4408
Re: SQLite using Variables with SELECT and WHERE
Hello everyone,,
I have a form with data from SQLite. Vertically on the left I am showing all of the fields for a single record. As I can only do a Next and not a Previous in SQLite I have a ListIconGadget() to the right containing all of the records from the database showing just three or four ...
I have a form with data from SQLite. Vertically on the left I am showing all of the fields for a single record. As I can only do a Next and not a Previous in SQLite I have a ListIconGadget() to the right containing all of the records from the database showing just three or four ...
- Sun May 12, 2019 8:50 am
- Forum: Off Topic
- Topic: Why I left PureBasic
- Replies: 35
- Views: 34014
Re: Why I left PureBasic
Hi Joakim,
I’ve been on a similar journey myself. I hope you have great success with TypeScript and JavaScript.
I’ve come back to PB now. The big problem I have with JavaScript are the dependencies. They’re insane.
Look at this list of 16 frameworks: https://www.google.com/amp/s/hub.packtpub ...
I’ve been on a similar journey myself. I hope you have great success with TypeScript and JavaScript.
I’ve come back to PB now. The big problem I have with JavaScript are the dependencies. They’re insane.
Look at this list of 16 frameworks: https://www.google.com/amp/s/hub.packtpub ...
- Wed Apr 24, 2019 8:16 am
- Forum: Coding Questions
- Topic: How to understand GoTo's document note?
- Replies: 17
- Views: 5662
Re: How to understand GoTo's document note?
The problem is not Goto itself, the problem is that Goto is very often ab used , producing unreadable spaghetti code.
It's like using a sharp scalpel: an experienced surgeon knows when and how to use it properly. But when untrained people use it all the time anywhere and anyhow, nothing good comes ...
- Wed Apr 24, 2019 6:16 am
- Forum: Tricks 'n' Tips
- Topic: pb-event-fast
- Replies: 19
- Views: 7951
Re: pb-event-fast
You are right and should provide validation.
Hi Gurj,
It isn’t about verification or validation. It’s about exploration.
You start with your hypothesis - the thinking you believe is correct - and look for ways to explore that hypothesis by trying something and seeing what the results are ...
- Tue Apr 23, 2019 5:56 pm
- Forum: Tricks 'n' Tips
- Topic: pb-event-fast
- Replies: 19
- Views: 7951
Re: pb-event-fast
When optimising code the outcome can be counter-intuitive. You don't know until you have the benchmark numbers.gurj wrote:No, I just think that my logical thinking is right.
- Tue Apr 23, 2019 4:20 pm
- Forum: Tricks 'n' Tips
- Topic: pb-event-fast
- Replies: 19
- Views: 7951
Re: pb-event-fast
Interesting. Have you got any benchmarks to show the performance impact?