Search found 120 matches
- Mon Apr 22, 2024 8:44 pm
- Forum: Tricks 'n' Tips
- Topic: Monaco Editor hosted by PureBasic
- Replies: 3
- Views: 234
Re: Monaco Editor hosted by PureBasic
Nice, thanks for sharing!
- Sun Apr 21, 2024 8:18 pm
- Forum: Coding Questions
- Topic: GetFileDate() and UTC
- Replies: 6
- Views: 524
Re: GetFileDate() and UTC
Wouldn't it be better to report this as a bug?
With the new date library in place this should be handled correctly (and I hope it can do this for ExamineDirectory() as well)...
With the new date library in place this should be handled correctly (and I hope it can do this for ExamineDirectory() as well)...
- Thu Apr 04, 2024 3:29 pm
- Forum: Feature Requests and Wishlists
- Topic: Sorted list of compilers
- Replies: 4
- Views: 236
Re: Sorted list of compilers
Not really installing, but extracting the different .exe & copying the necessary items into the necessary folders and finally adding them via preferences E.g.: D:\Tools\PureBasic_x64\App This one contains the normal x64 folder structure: Catalogs Compilers PureLibraries Residents SDK SubSystems ...
- Wed Apr 03, 2024 5:02 pm
- Forum: Feature Requests and Wishlists
- Topic: Sorted list of compilers
- Replies: 4
- Views: 236
Sorted list of compilers
Would it be possible to sort compilers (e.g. first by version, then by bitness) in
Menu | Compiler | Compiler Options...
?
My list currently looks like this:
https://imgur.com/a/PzTOkcT
Menu | Compiler | Compiler Options...
?
My list currently looks like this:
https://imgur.com/a/PzTOkcT
- Wed Jan 31, 2024 6:42 am
- Forum: Coding Questions
- Topic: [pb6.10b4] Required Compiler can't be found
- Replies: 14
- Views: 751
Re: [pb6.10b4] Required Compiler can't be found
And you’ve checked the compiler settings of the current project you’re trying to compile?
- Mon Jan 15, 2024 1:47 pm
- Forum: Announcement
- Topic: PB-CTypeTable
- Replies: 10
- Views: 2358
Re: PB-CTypeTable
@Inner
Don't know if you care or not, but on the github page you have two occurrences of the word "veriable".
Maybe you want to correct them to "variable"
Don't know if you care or not, but on the github page you have two occurrences of the word "veriable".
Maybe you want to correct them to "variable"
- Sun Jan 14, 2024 9:10 pm
- Forum: The PureBasic Editor
- Topic: IDE-Tool Addition: activate Long Line Edge
- Replies: 5
- Views: 754
Re: IDE-Tool Addition: activate Long Line Edge
Very helpful, thanks for sharing!
- Sun Jan 14, 2024 9:09 pm
- Forum: The PureBasic Editor
- Topic: IDE-Tool for activating the ChangeHistory Feature in Scintilla
- Replies: 2
- Views: 592
Re: IDE-Tool for activating the ChangeHistory Feature in Scintilla
Very helpful, thanks (again) for sharing!
- Mon Jan 01, 2024 8:45 pm
- Forum: Coding Questions
- Topic: Extracting JSON arrays
- Replies: 4
- Views: 1028
Re: Extracting JSON arrays
I know this thread is a bit older but I was just in the need to pick specific elements in a json hierarchy so: Thank you @the.weavster for the example code to do this!
- Mon Jan 01, 2024 6:06 pm
- Forum: Coding Questions
- Topic: Get only trailing numbers from a string?
- Replies: 30
- Views: 1395
Re: Get only trailing numbers from a string?
@mk-soft
~23 ms for 100k rounds. Nice as well
Happy new year!
~23 ms for 100k rounds. Nice as well
Happy new year!
- Sun Dec 31, 2023 8:55 am
- Forum: Feature Requests and Wishlists
- Topic: Position number for ExamineRegularExpression()
- Replies: 5
- Views: 560
Re: Position number for ExamineRegularExpression()
Afaik not possible. That's internal data of the regex engine, you can't start / resume a regex search from a different position.
What you can do is: If you got the position from the first match, split the string at that pos (-1) and start the search on the second part of the split
What you can do is: If you got the position from the first match, split the string at that pos (-1) and start the search on the second part of the split
- Sun Dec 31, 2023 1:13 am
- Forum: Feature Requests and Wishlists
- Topic: Position number for ExamineRegularExpression()
- Replies: 5
- Views: 560
Re: Position number for ExamineRegularExpression()
There is
Just store these positions during the loop if you want to access them (later)?
Code: Select all
RegularExpressionMatchPosition()
- Sat Dec 30, 2023 8:22 pm
- Forum: Coding Questions
- Topic: Get only trailing numbers from a string?
- Replies: 30
- Views: 1395
Re: Get only trailing numbers from a string?
@SMaag
Thanks for adding this to the discussion
I do not plan to test it for speed but it adds some additional value (so I've added it to the string functions I use)
Thanks for adding this to the discussion
I do not plan to test it for speed but it adds some additional value (so I've added it to the string functions I use)
- Sat Dec 30, 2023 5:36 pm
- Forum: Coding Questions
- Topic: Get only trailing numbers from a string?
- Replies: 30
- Views: 1395
Re: Get only trailing numbers from a string?
Ok, thanks!
About 13ms for both variants (Create threadsafe executable / or not). No real difference
About 13ms for both variants (Create threadsafe executable / or not). No real difference
- Sat Dec 30, 2023 5:20 pm
- Forum: Coding Questions
- Topic: Get only trailing numbers from a string?
- Replies: 30
- Views: 1395
Re: Get only trailing numbers from a string?
@mk-soft Two questions to fully understand what you're doing there: Default *result = @result You're setting the pointer back to the start of the string here? Let's say the demo string is: 25468test123 Then "25468" is already in the result The current char is now 't', the pointer is moved ...