Search found 974 matches
- Thu Apr 15, 2021 5:48 am
- Forum: Announcement
- Topic: Forums update
- Replies: 125
- Views: 67259
Re: Forums update
Why is the phpBB logo displayed at the top of each page? This is the place where the Pb logo must be shown.
- Tue Mar 30, 2021 12:51 am
- Forum: Feature Requests and Wishlists
- Topic: Make string comparing faster
- Replies: 24
- Views: 3912
Re: Make string comparing faster
All back. I don't know where I made my mental error. Maybe I should not think too much at this time
- Tue Mar 30, 2021 12:28 am
- Forum: Feature Requests and Wishlists
- Topic: Make string comparing faster
- Replies: 24
- Views: 3912
Re: Make string comparing faster
A string is a pointer to a pointer. PurbeBasic keeps an internal management over string literals. If a string literal is used more than once, it is still only created once in memory. This is even true for a combination of strings and constants.BarryG wrote:Huh? How does PeekI() know if the strings are the same?
- Tue Mar 30, 2021 12:10 am
- Forum: Feature Requests and Wishlists
- Topic: Make string comparing faster
- Replies: 24
- Views: 3912
Re: Make string comparing faster
None of this comes close to a simple comparison of the string pointers.Saki wrote:Hi,
you can use CompareMemoryString() or Comparememory()
- Mon Mar 29, 2021 11:49 pm
- Forum: Feature Requests and Wishlists
- Topic: Make string comparing faster
- Replies: 24
- Views: 3912
Make string comparing faster
String comparisons (is equal only) could be much faster by comparing only the pointers. This makes the comparison faster by a factor of 2-3 already for short strings, for longer strings the factor increases more and more. ;Test with short strings ;a$="x" ;b$="x" ;Test with longer...
- Thu Mar 25, 2021 8:52 pm
- Forum: General Discussion
- Topic: "Project Based" learning for PB?
- Replies: 12
- Views: 3122
Re: "Project Based" learning for PB?
And what do you get out of learning an example in one context, but then your program is in a completely different context? As mentioned in my first post, the system of 'learn all the commands and then start programming' will no longer work. That may have been true many decades ago, but not today. Si...
- Thu Mar 25, 2021 7:47 pm
- Forum: General Discussion
- Topic: "Project Based" learning for PB?
- Replies: 12
- Views: 3122
Re: "Project Based" learning for PB?
What you're looking for may have been possible in the past, where you could fit the entire instruction set of the programming language into a 200 line program. You should roughly deal with the commands and have a rough overview of the available libraries. Then you know when programming at least appr...
- Thu Mar 25, 2021 3:39 pm
- Forum: Announcement
- Topic: Blog post !
- Replies: 325
- Views: 93553
Re: Blog post !
Somehow it's like a coop of startled chickens here. :idea: Now that PB will be closer to C, is it possible to add some useful basic C functions like formatting and string analysis. For me, Fred's statement is not that difficult to understand: No new features will be added to PureBasic. It's just a n...
- Wed Mar 24, 2021 8:08 am
- Forum: Coding Questions
- Topic: DateDiff question
- Replies: 7
- Views: 1673
Re: DateDiff question
Code: Select all
Debug (Date (2021, 03, 31, 00, 00, 00) - Date (2021, 03, 29, 00, 00, 00)) / 60 / 60 / 24
- Mon Mar 22, 2021 4:00 pm
- Forum: Tricks 'n' Tips
- Topic: Get Desktop Metrics In Multi-Display Setup
- Replies: 7
- Views: 3430
Re: Get Desktop Metrics In Multi-Display Setup
Thanks TI. I just tested it on Win7. Looks good, but one little thing strikes me as a bit odd: When I move the window from one screen to the other, the display "The app is on desktop 1" changes to "The app is on desktop 0" exactly when the window is completely on desktop 0. This ...
- Fri Mar 19, 2021 9:25 pm
- Forum: Announcement
- Topic: Blog post !
- Replies: 325
- Views: 93553
Re: Blog post !
Stay cool and wait and see. The first goal should be that Pb under C runs as stable as it does now with the current language set.StarBootics wrote:Will all this be introduced into the PureBasic language
- Thu Mar 18, 2021 8:42 pm
- Forum: Announcement
- Topic: Blog post !
- Replies: 325
- Views: 93553
Re: Blog post !
And not very Basic-like I can't hear it anymore, these empty phrases. What is Basic? Where is Basic defined exactly? If you give importance to the 'real' Basic, then you will have to limit yourself to such codes in a suitable programming language: 10 LET N=10 20 FOR I=1 TO N 30 PRINT "Hello, W...
- Tue Mar 16, 2021 12:16 am
- Forum: Feature Requests and Wishlists
- Topic: When a crash occurs during debugging
- Replies: 2
- Views: 937
- Mon Mar 15, 2021 10:18 am
- Forum: Coding Questions
- Topic: resource files for beginner
- Replies: 12
- Views: 1823
Re: resource files for beginner
@TI-994A I wouldn't say that, although I can only speak of Windows here. Recource files are files that come with the program or are included in the exe. In Pb this must be done in CompilerOptions > Resources. Since resources are appended at the end of the exe, they can also be replaced with a simpl...
- Sun Mar 14, 2021 7:00 pm
- Forum: Announcement
- Topic: Blog post !
- Replies: 325
- Views: 93553
Re: Blog post !
Hoping, that the false positives messages from the virus scanners will be reduced too.