Chr limit

Forum for discussion about the documentation project.
Post Reply
Macq
Posts: 24
Joined: Feb 18, 2021 4:01
Location: Queensland, Australia

Chr limit

Post by Macq »

The maximum number of characters in a string constructed with chr( ch0 [, ch1 ... chN ] ) is 32.
The FreeBasic Manual doesn't say anything about N <= 32.

Perhaps it should 8)
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Chr limit

Post by fxm »

I moved this post to the Documentation forum.
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Chr limit

Post by fxm »

Done:
- KeyPgChr → fxm [added the maximum number of characters]
- KeyPgWchr → fxm [added the maximum number of characters]
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Chr limit

Post by TJF »

Macq wrote: Apr 01, 2022 23:38The FreeBasic Manual doesn't say anything about N <= 32.
From my point of view the whole text is about N <= 32.

The hint on the var-length parameter list limit is not bad, but more important would be a hint that ASCII integer values are in the range of [0-255] (to avoid a further click for clearness).
Post Reply