Search found 1835 matches

by Tenaja
Sat Mar 16, 2024 3:06 pm
Forum: Tricks 'n' Tips
Topic: SplitString to list or array with option double-quotes (CSV)
Replies: 16
Views: 5174

Re: SplitString to list or array with option double-quotes (CSV)

I get it, no worries and sorry for the inconvenience, i don't want to spam your thread. I don't understand in a first reading why you use (Just get it, to get around the PB syntax): text.s = "0;1x;2xx;'Text with separator (;)';4xxxx;5xxxxx;'Text with linefeed " + #LF$ + "and separato...
by Tenaja
Thu Mar 07, 2024 4:32 pm
Forum: Coding Questions
Topic: Can a structure be defined dynamically by csv headers
Replies: 24
Views: 872

Re: Can a structure be defined dynamically by csv headers

My mind is a bit blown by how much code has to be written in PureBasic to do this That is because those languages have CSV support in their respective standard libraries where PureBasic has not. I agree... CSV support would be nice. Keep in mind that there are many libraries native to pb that do no...
by Tenaja
Thu Feb 22, 2024 7:41 pm
Forum: Coding Questions
Topic: Easier way to pass parameters by reference, as in C ?
Replies: 6
Views: 303

Re: Easier way to pass parameters by reference, as in C ?

(I think) that method with a string is used because a string is already a pointer, and when you call a proc with a string argument, by default it copies the string prior to sending. That is a workaround specific to strings to send the string address.
by Tenaja
Wed Feb 21, 2024 10:03 pm
Forum: Coding Questions
Topic: StrD and Rounding
Replies: 17
Views: 566

Re: StrD and Rounding

You could multiply by 10, or 100, or 10000 it whatever precision you want, then do your rounding. Then divide back, if you want decimals (or do it in the string).
by Tenaja
Sun Feb 04, 2024 6:01 pm
Forum: Coding Questions
Topic: InitScintilla with PB 6.10
Replies: 3
Views: 290

Re: InitScintilla with PB 6.10

Oh, yeah... Three scintilla library didn't have all of the lexers available in the dll. I don't know if Fred's changed that recently, but you had to use a dll to get those anyway, unless you wanted to make a static library yourself to link those in.
by Tenaja
Sun Feb 04, 2024 5:53 pm
Forum: Coding Questions
Topic: InitScintilla with PB 6.10
Replies: 3
Views: 290

Re: InitScintilla with PB 6.10

The linked one is always very old, which is why I usually use the dll for my personal programs. You'll have to look for examples of how to link in a dll of you want to use one. There is a whole library of PB commands for dll's. There will also be helper code here so you don't have to define all of t...
by Tenaja
Mon Jan 29, 2024 7:14 pm
Forum: Coding Questions
Topic: Benchmark PB
Replies: 14
Views: 1092

Re: Benchmark PB

There is a web site that compares benchmarks of many languages & compilers called the compiler game or something like that. It would be perfect to translate that C code into PB, as you could also compare THE benchmark, C, on the same machine. https://benchmarksgame-team.pages.debian.net/benchmar...
by Tenaja
Wed Jan 24, 2024 3:20 am
Forum: Feature Requests and Wishlists
Topic: Numeric Maps
Replies: 17
Views: 1536

Re: Numeric Maps

Fred wrote: Mon Jan 22, 2024 10:07 am It's not published because I want a seemless integration (not adding AddNumericMapElement() for example but still use AddMapElement() with a numeric param) but it needs some compiler tweaks.
Instead of AddMapElement() can you use
AddTrieElement()
?

(Just give it a new name...)
by Tenaja
Sat Jan 20, 2024 7:02 pm
Forum: Feature Requests and Wishlists
Topic: Numeric Maps
Replies: 17
Views: 1536

Re: Numeric Maps

Time flies; I asked about this ten years ago. There are some solutions in this thread:
https://www.purebasic.fr/english/viewto ... 38#p440238
by Tenaja
Tue Jan 16, 2024 11:46 pm
Forum: Coding Questions
Topic: Two compiled files have different hash sums
Replies: 7
Views: 752

Re: Two compiled files have different hash sums

There's also an option for an incrementing version code constant, which would change a checksum. It's in the settings... If you've enabled it and forgotten, it could cause this.
by Tenaja
Fri Dec 29, 2023 9:43 pm
Forum: Coding Questions
Topic: How to improve the sharpness of an image for OCR
Replies: 3
Views: 371

Re: How to improve the sharpness of an image for OCR

For a single file, load it into Paint.Net and adjust contrast...
sorry, can't help with the code, but pdn is open source (I think), so viewing the code might get you a solution.
by Tenaja
Wed Dec 27, 2023 6:32 pm
Forum: Announcement
Topic: i2pdf - image to pdf
Replies: 38
Views: 12593

Re: i2pdf - image to pdf

I cannot access the link in the original post. It says Forbidden. The link in your signature works, though.
by Tenaja
Mon Dec 25, 2023 11:49 pm
Forum: Applications - Feedback and Discussion
Topic: IconEditor
Replies: 7
Views: 1846

Re: IconEditor

Thanks for sharing azjio!

For easily scalable icons, see the big thread on vector icons.
https://www.purebasic.fr/english/viewto ... ctor+icons

Obviously, each tool has it's place.
by Tenaja
Sun Dec 24, 2023 4:50 pm
Forum: Bugs - IDE
Topic: No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)
Replies: 7
Views: 949

Re: No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)

Little John wrote: Sun Dec 24, 2023 4:30 am
BarryG wrote: But doesn't the leading "!" mean the entire line is ASM?
It means that the entire line is ASM when using the ASM backend, and it means that the entire line is C when using the C backend.
Doesn't the ide know which is set up? Or, can't it be a setting?
by Tenaja
Sun Dec 17, 2023 4:07 pm
Forum: General Discussion
Topic: New Forum section for C Programming!
Replies: 22
Views: 2162

Re: New Forum section for C Programming!

useful wrote: Sun Dec 17, 2023 3:16 pm
juergenkulow wrote: Sun Dec 17, 2023 1:40 pm Simply rename a forum: Assembly and C Programming for PureBasic
+++ 111 :D
+1, with pb in the name

(I edited your new name suggestion)