Search found 3762 matches

by Little John
Wed Mar 06, 2024 11:49 am
Forum: Coding Questions
Topic: Word wrapping
Replies: 1
Views: 152

Re: Word wrapping

These are my word wrap functions.
by Little John
Sun Mar 03, 2024 11:35 am
Forum: Tricks 'n' Tips
Topic: DateEx: Extended Date library
Replies: 33
Views: 4381

Re: DateEx: Extended Date library

New version 2.01, 2024-03-03

Changed
  • Fixed bugs
  • Renamed procedure TimeZoneOffset() to TimeZone()
  • New public procedure TimeZoneStr()
  • New public procedure BlackFriday()
by Little John
Fri Mar 01, 2024 8:43 pm
Forum: Coding Questions
Topic: Solve 1 Equation with 2 Unknowns
Replies: 23
Views: 729

Re: Solve 1 Equation with 2 Unknowns

DarkDragon wrote: Fri Mar 01, 2024 8:17 pm It's still infinitely many, even if not at X = 0.
Yep, exactly!
by Little John
Fri Mar 01, 2024 3:01 pm
Forum: Coding Questions
Topic: HTML characters convert {Resolved]
Replies: 6
Views: 290

Re: HTML characters convert

Kwai chang caine wrote: Fri Mar 01, 2024 12:32 pm
U+0153 œ c5 93 LATIN SMALL LIGATURE OE
U+153 is a hexadezimal value => Chr($153) in PureBasic.
by Little John
Fri Mar 01, 2024 8:46 am
Forum: Coding Questions
Topic: Solve 1 Equation with 2 Unknowns
Replies: 23
Views: 729

Re: Solve 1 Equation with 2 Unknowns

X = (653184000 / (499 * Y)) 1) This equation also can be written like this: Y = 653184000 / (X * 499)   2) For a long time X was unknown, so that people all over the world had to calculate its value over and over again. Fortunately, about 10 years ago the world-renowned Max Planck Institute for Mat...
by Little John
Mon Feb 19, 2024 9:38 pm
Forum: Bugs - C backend
Topic: [Done] C backend throws assembler error when a variable is declared with an empty structure
Replies: 6
Views: 441

Re: C backend throws assembler error when a variable is declared with an empty structure

Fred wrote: Mon Feb 19, 2024 8:45 pm It actually makes no sens, so may be a compiler error should be raised when trying to use an empty structure.
I agree that an error should be raised when trying to use an empty structure.
by Little John
Mon Feb 12, 2024 8:38 pm
Forum: Bugs - Documentation
Topic: [Done] Base64Encoder()
Replies: 4
Views: 772

Re: [Done] Base64Encoder()

Image :-)
by Little John
Mon Feb 12, 2024 6:42 am
Forum: Bugs - Documentation
Topic: [Done] Base64Encoder()
Replies: 4
Views: 772

Re: Base64Encoder()

Better keep examples like this short and simple: String$ = "This is a test string!" *Text = Ascii(string$) Encoded$ = Base64Encoder(*Text, StringByteLength(String$, #PB_Ascii)) Debug "Encoded: " + Encoded$ *DecodedBuffer = AllocateMemory(1024) Base64Decoder(Encoded$, *DecodedBuff...
by Little John
Sun Feb 11, 2024 10:10 pm
Forum: Bugs - Documentation
Topic: [Done] ReadString
Replies: 8
Views: 1140

Re: ReadString

Just make a small addition to the example that currently exists in the help in the ReadFile() topic: If ReadFile(0, "Text.txt") ; if the file could be read, we continue ... Format = ReadStringFormat(0) While Eof(0) = 0 ; loop as long the 'end of file' isn't reached Debug ReadString(0, Form...
by Little John
Fri Feb 09, 2024 6:00 pm
Forum: Coding Questions
Topic: NaN() and if compare problem
Replies: 3
Views: 212

Re: NaN() and if compare problem

; ASM OK, C-Backend Bug? Number = Sqr(-1) If Number = NaN() [...] Wrong code. In order to check for NaN, only use PB's IsNaN() function. NaN is a special value. Testing for it should not be done using normal comparisons because there are actually many different values for NaN and whether or not NaN...
by Little John
Thu Feb 08, 2024 8:04 pm
Forum: Feature Requests and Wishlists
Topic: GetListPositionStackSize(MyList())
Replies: 4
Views: 304

Re: GetListPositionStackSize(MyList())

jacdelad wrote: Thu Feb 08, 2024 7:37 pm ...and as you can see, I read it some time ago. :mrgreen:
So what? My above link to freaks post obviously was for Bisonte, not for you. :mrgreen:
by Little John
Thu Feb 08, 2024 7:24 pm
Forum: Feature Requests and Wishlists
Topic: GetListPositionStackSize(MyList())
Replies: 4
Views: 304

Re: GetListPositionStackSize(MyList())

Bisonte wrote: Thu Feb 08, 2024 8:03 am Interesting !

I always thought it was only possible with one element at a time....
Here is detailed information about PushListPosition() and PopListPosition() by freak.

PS: A new built-in function GetListPositionStackSize() is overkill IMHO. Using a variable for this purpose is easy.
by Little John
Tue Feb 06, 2024 11:20 pm
Forum: Bugs - Documentation
Topic: OpenHelp/CloseHelp on Linux
Replies: 4
Views: 298

Re: Open/Close Help

Oh, I see.
by Little John
Tue Feb 06, 2024 11:20 pm
Forum: Bugs - Linux
Topic: OpenHelp/CloseHelp on Linux
Replies: 4
Views: 164

Re: Open/Close Help

Oh, I see.