For our Developers... - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +--- Thread: For our Developers... (/showthread.php?tid=2569) Pages:
1
2
|
For our Developers... - Pete - 04-03-2024 Ever consider adding _SAVE and _SAVEAS? I was thinking today (shut up Steve) that since someone changed the IDE save function to a more Windows type look, it might be fairly easy to code these nice features and add them to our keywords, much like the _InputBox feature. I figure as long as we never lose our BASIC buildings blocks, to be able to build these functions from scratch, additions like this can't hurt the language and they might make the language more attractive to new users. Oh, and as a side note, did you folks know the IDE cannot correctly save a program with certain control characters enclosed in quotes? Easy enough to work around that by making the string as CHR(0) + CHR$(1)... etc. Anyway, just thought I'd bring it up in case anyone has the time to look into it, after you're done poking fun at Steve's code while on Discord. Pete RE: For our Developers... - Pete - 04-03-2024 Hey that was fast! _SAVEFILEDIALOG$ Next time I'll look in the Wiki, first. A lot got done in the year I was out. Pete RE: For our Developers... - RhoSigma - 04-03-2024 (04-03-2024, 10:53 PM)Pete Wrote: Hey that was fast! Ooohh yes, lots of things were improved and added. You were away since Dec/22, so I'd recommend not only looking into the Wiki, but also have a look on our release notes at GitHub and work down through it til v3.5.0, which came in Jan/23. RE: For our Developers... - Pete - 04-03-2024 Will do, thanks! Pete RE: For our Developers... - SMcNeill - 04-03-2024 A Highlight of Steve's Favorite Features of the Last Year(tm)!! Quote:#46, #98, #250, #265, #272 - Added support for opening HTTP and HTTPS requests using _OPENCLIENT(). - @mkilgore RE: For our Developers... - Pete - 04-03-2024 First I need to build a bigger sand box to play around with all this great new stuff! Pete RE: For our Developers... - Pete - 04-04-2024 Quit laughing Fell, I see you! Pete RE: For our Developers... - TDarcos - 04-04-2024 (04-03-2024, 10:40 PM)Pete Wrote: IOh, and as a side note, did you folks know the IDE cannot correctly save a program with certain control characters enclosed in quotes? Easy enough to work around that by making the string as CHR(0) + CHR$(1)... etc. Anyway, just thought I'd bring it up in case anyone has the time to look into it, after you're done poking fun at Steve's code while on Discord.The reason is simple. Windows uses the Unicode compliant UTF-8 (Read The article on Wikipedia) for file names and file contents. QB64pe is essentially a Dos program running as ASCII only. UTF-8 is exactly the same as ASCII, for CHR$(0) thru CHR$(127). For the characters above 127, it uses an encoding system where a character in the range 128 to about 40,000 is translated into a 2, 3, or 4 character value. So when characters above 128 appear, Windows can't use them because it does not support Unicode in that form. We are using the "A-form" Windows system calls, e.g. GetOpenFileNameA rather than GetOpenFileNameW, so the characters display as ASCII values, not Unicode. So that's one possible reason. It may not be the only one. RE: For our Developers... - Pete - 04-04-2024 It can save strings with characters above 127 like 128, 129, and 130. The rest I didn't test. It has a problem with chr$(10) the end of line character. Insert it in quotes with a PRINT statement. It can be saved, but when you open the file, it won't be present. The IDE does issue a warning that the IDE may not act as expected if characters 1-32 are used. Of course we have _CONTROLCHR OFF to help with running a program with these lower ASCII control characters, but that won't help when saving the file. Some control characters like CHR$(10) cannot be saved as a glyph, you have to use PRINT CHR$(10) to get the IDE to save it correctly. Pete RE: For our Developers... - SpriggsySpriggs - 04-04-2024 What would be the point of needing those other characters in a file name? |