Variables and Types - There is no information about the types for the executable ASCII file.
StringByteLength - There is information for the executable ASCII file
The expected text:
#PB_Unicode: Unicode format (default)
StringByteLength - Unicode(default)
Moderator: Documentation Editors
-
- Addict
- Posts: 4786
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: StringByteLength - Unicode(default)
There is no such information required.AZJIO wrote: Variables and Types - There is no information about the types for the executable ASCII file.
Where do you expect that text?AZJIO wrote: StringByteLength - There is information for the executable ASCII file
The expected text:
#PB_Unicode: Unicode format (default)
Current PureBasic versions do always generate executables in Unicode mode.
The comment in the help of StringByteLength
is obsolete and should be removed.If omitted, the mode of the executable (unicode or ascii) is used.
Re: StringByteLength - Unicode(default)
Yup.Little John wrote: Wed Apr 16, 2025 6:56 pm The comment in the help of StringByteLengthis obsolete and should be removed.If omitted, the mode of the executable (unicode or ascii) is used.
History -> version 5.50 wrote: - Removed: ASCII mode for internal PureBasic string representation, PureBasic is now unicode only.
Re: StringByteLength - Unicode(default)
All functions (PeekS, PokeS, ReadFile, CreateFile, OpenFile, CompareMemoryString, MemoryStringLength, etc.) specify which format is used by default. Do the same for StringByteLength(). I don't think there should even be any questions here, everything is obvious.
-
- Addict
- Posts: 4786
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: StringByteLength - Unicode(default)
What you wrote was not obvious and not clearly understandable.AZJIO wrote: Wed Apr 16, 2025 8:29 pm I don't think there should even be any questions here, everything is obvious.
- Andre
- PureBasic Team
- Posts: 2139
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: StringByteLength - Unicode(default)
Removed that.Little John wrote: Wed Apr 16, 2025 6:56 pm The comment in the help of StringByteLengthis obsolete and should be removed.If omitted, the mode of the executable (unicode or ascii) is used.
But I agree, that a "(Standard)" should be placed behind one of the 3 options / constants in the description. But I don't know myself... Unicode or Utf8?