Search found 1025 matches

by User_Russian
Wed Mar 27, 2024 11:51 am
Forum: Feature Requests and Wishlists
Topic: DebugOutput window / Script line
Replies: 5
Views: 195

Re: DebugOutput window / Script line

Code: Select all

Macro Line
  Str(#PB_Compiler_Line)+" "
EndMacro

Debug Line+"Text"
Debug Line+"Text"
Debug Line+"Text"
Debug Line+"Text"
by User_Russian
Fri Mar 22, 2024 5:21 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 325
Views: 40134

Re: PureBasic 6.10 beta 9 is out !

In windows versions, in folders "Compilers\" and "PureLibraries\Windows\Libraries\" found the folder "arm64\".
Was this added by mistake or are there plans to add Windows ARM?
by User_Russian
Mon Feb 12, 2024 9:58 pm
Forum: Coding Questions
Topic: SetFileDate() and GetFileDate()
Replies: 4
Views: 375

SetFileDate() and GetFileDate()

If you look at the file properties in Explorer, the time is an hour longer than specified. Date.q = Date(2010, 4, 8, 2, 0, 0) File.s = GetTemporaryDirectory()+"Test.txt" CreateFile(0, File) CloseFile(0) SetFileDate(File, #PB_Date_Created, Date) Debug FormatDate("%yyyy/%mm/%dd %hh:%ii:...
by User_Russian
Sun Jan 28, 2024 1:47 pm
Forum: Coding Questions
Topic: Chr and Asc bug
Replies: 4
Views: 503

Re: Chr and Asc bug

UTF-16 Encoding: 0xD83D 0xDD01 Chr() and Asc() don't support this. Workaround. Procedure.l NewAsc(s.s) Protected r = Asc(s) If r>=$D800 And r<=$DFFF r | ((Asc(PeekS(@s+2, 1))&$FFFF)<<16) EndIf ProcedureReturn r EndProcedure Procedure.s NewChr(Char.l) Protected x, r.s = Chr(Char) x = Char & ...
by User_Russian
Sun Jan 28, 2024 11:39 am
Forum: Coding Questions
Topic: Chr and Asc bug
Replies: 4
Views: 503

Chr and Asc bug

Code: Select all

Char.q = $81949FF0
s.s=PeekS(@Char, 1, #PB_UTF8)
ShowMemoryViewer(@s, 8)
Debug s
Debug Asc(s)
Debug Chr(Asc(s))
by User_Russian
Sat Jan 27, 2024 5:06 pm
Forum: Coding Questions
Topic: PB 6.10 b1 - OpenPreference()
Replies: 17
Views: 1624

Re: PB 6.10 b1 - OpenPreference()

In PB 6.10 beta 4, in the function description OpenPreferences(), it is written Encoding (optional) To force a string encoding when reading the preference file. If an UTF-8 BOM is found in at the start of the file, this parameter is ignored and UTF-8 will be used. It can be one of the following valu...
by User_Russian
Sat Jan 27, 2024 2:24 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 325
Views: 40134

Re: PureBasic 6.10 beta 4 is out !

mk-soft wrote: Sat Jan 27, 2024 1:56 pmThe documentation will only be updated with the release
What does this phrase mean then?
Fred wrote: Sat Jan 27, 2024 10:44 am

Code: Select all

Added: most of the new english documentation
by User_Russian
Fri Jan 19, 2024 8:28 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 325
Views: 40134

Re: PureBasic 6.10 beta 3 is out !

miniaudio supports mp3. But in the PB version, this is disabled (probably the static library is compiled with the MA_NO_MP3 flag). :?
It would be great to add MP3 support to PB. :)
by User_Russian
Tue Jan 16, 2024 6:45 pm
Forum: Coding Questions
Topic: PB 6.10 b1 - OpenPreference()
Replies: 17
Views: 1624

Re: PB 6.10 b1 - OpenPreference()

#PB_Ascii in Linux
This topic was created in the Windows section. Then move it to another section.
Windows is localized for each language and the text in ascii is displayed correctly.
Linux does not have localization for languages.
by User_Russian
Tue Jan 16, 2024 4:22 pm
Forum: Coding Questions
Topic: PB 6.10 b1 - OpenPreference()
Replies: 17
Views: 1624

Re: PB 6.10 b1 - OpenPreference()

AZJIO wrote: Tue Jan 16, 2024 3:56 pmThe #PB_Ascii flag will require all "Windows code pages" to be embedded.
File functions support required encodings (#PB_Ascii, #PB_UTF8 and #PB_Unicode).
by User_Russian
Tue Jan 16, 2024 3:21 pm
Forum: Coding Questions
Topic: PB 6.10 b1 - OpenPreference()
Replies: 17
Views: 1624

Re: PB 6.10 b1 - OpenPreference()

But then why do we need flag #PB_Preference_NoBOM if function CreatePreferences() saves with BOM? In any case, if this is a PB-only library, there is no need for #PB_Preference_NoBOM. https://www.purebasic.fr/english/viewtopic.php?p=577057 Fred wrote that the Preference library is only for PB appli...
by User_Russian
Tue Jan 16, 2024 11:26 am
Forum: Coding Questions
Topic: PB 6.10 b1 - OpenPreference()
Replies: 17
Views: 1624

Re: PB 6.10 b1 - OpenPreference()

But then why do we need flag #PB_Preference_NoBOM if function CreatePreferences() saves with BOM?
In any case, if this is a PB-only library, there is no need for #PB_Preference_NoBOM.