Search found 175 matches
- Tue Aug 15, 2017 2:50 pm
- Forum: Feature Requests and Wishlists
- Topic: Modules: Add "Main::" To Access Main Code Namespace
- Replies: 2
- Views: 1553
Re: Modules: Add "Main::" To Access Main Code Namespace
Thanks luis ... sorry for the duplicate, I wasn't aware of the post you linked — as the forums grow bigger and bigger, it's getting more difficoult to find resources and topics because there is no system in place to nicely categorize topics as "feature reuests", "bugs", etc., wit...
- Mon Aug 14, 2017 10:18 am
- Forum: Feature Requests and Wishlists
- Topic: Modules: Add "Main::" To Access Main Code Namespace
- Replies: 2
- Views: 1553
Modules: Add "Main::" To Access Main Code Namespace
I don't know if this is possible, but it would be nice if Modules could access variables, procedures, etc., from the main code via something like " Main:: " — ie: make "Main::" act like if the main code was an implicit module. This would allow to exceptionally access some vars or...
- Sat Jul 22, 2017 8:10 pm
- Forum: Feature Requests and Wishlists
- Topic: Add Constant for OS default path separator
- Replies: 12
- Views: 4565
Re: Add Constant for OS default path separator
Today I wrote an include "GetAbsolutePath" and added it to the CodeArchive that provides this functionality. https://github.com/SicroAtGit/PureBasic-CodeArchiv-Rebirth/blob/master/FileSystem/GetAbsolutePath.pbi Look at the other path functions as well: https://github.com/SicroAtGit/PureBa...
- Thu Jul 20, 2017 9:36 am
- Forum: Feature Requests and Wishlists
- Topic: Lexers support for Scintilla
- Replies: 9
- Views: 4782
Re: Lexers support for Scintilla
... in case anyone's searching the forums for GoScintilla, I found version 3 on Github: https://github.com/tajmone/purebasic-archives/tree/master/pb-development/purelibs/scintilla/GoScintilla A few (due) notes about the version 3 (taken from the GitHub repository): GoScintilla 3 takes on from the l...
- Mon Jul 03, 2017 9:13 am
- Forum: Feature Requests and Wishlists
- Topic: ExamineDirectory() :: Add Command To Get Number of Entries
- Replies: 14
- Views: 4883
Re: ExamineDirectory() :: Add Command To Get Number of Entri
2nd remarkIt seems that '/' is cross-platform. No need to use a compiler directive to pre-select a '/' character or a '\' character, depending of the OS. Do I mistake? Windows will accept "/" as a path separator, but any commands dealing with file paths will always return "\" as...
- Sat Jul 01, 2017 3:12 pm
- Forum: Feature Requests and Wishlists
- Topic: ExamineDirectory() :: Add Command To Get Number of Entries
- Replies: 14
- Views: 4883
Re: ExamineDirectory() :: Add Command To Get Number of Entri
Even though it wouldn't optimize execution time, wouldn't it still be worth it because it allows to get this info with a single command instead of writing a whole block? At the beginning of your first post here, you almost wrote such a function yourself with a few lines ... ... true! Surely, writin...
- Sat Jul 01, 2017 11:03 am
- Forum: Feature Requests and Wishlists
- Topic: ExamineDirectory() :: Add Command To Get Number of Entries
- Replies: 14
- Views: 4883
Re: ExamineDirectory() :: Add Command To Get Number of Entri
I see. It's a pity, it would have been useful.
Even though it wouldn't optimize execution time, wouldn't it still be worth it because it allows to get this info with a single command instead of writing a whole block?
At least it would make cleaner code.
Even though it wouldn't optimize execution time, wouldn't it still be worth it because it allows to get this info with a single command instead of writing a whole block?
At least it would make cleaner code.
- Fri Jun 30, 2017 2:17 pm
- Forum: Feature Requests and Wishlists
- Topic: ExamineDirectory() :: Add Command To Get Number of Entries
- Replies: 14
- Views: 4883
ExamineDirectory() :: Add Command To Get Number of Entries
Currently there is no way to know how many entries ExamineDirectory() found. The only way around it seems to be restorting to a While NextDirectoryEntry() loop with a custom counter — something like this: Directory$ = GetHomeDirectory() If ExamineDirectory(0, Directory$, "*.*") count = 0 W...
- Fri Jun 09, 2017 1:39 pm
- Forum: Feature Requests and Wishlists
- Topic: PB IDE: add Edit Selection Case functionality
- Replies: 3
- Views: 1689
Re: PB IDE: add Edit Selection Case functionality
Thanks STARGÅTE !
This is going to be really useful.
This is going to be really useful.
- Thu Jun 08, 2017 3:01 pm
- Forum: Feature Requests and Wishlists
- Topic: PB IDE: add Edit Selection Case functionality
- Replies: 3
- Views: 1689
PB IDE: add Edit Selection Case functionality
It would be really nice to have a menu in PB's IDE to change the case of selected text (lowercase / uppercase / title case), and to have a predefined keyboard shortcut to toggle through the different cases (like in MS Word, where pressing Shift + F3 cycles through all available cases). Apart from si...
- Sat Jun 03, 2017 10:16 am
- Forum: Feature Requests and Wishlists
- Topic: PB IDE: Add Jump to Previous Marker
- Replies: 5
- Views: 2149
PB IDE: Add Jump to Previous Marker
Currently, PureBASIC IDE allows jumping to (next) Marker with F2 key. Since this is a very handy and often-used functionality (especially when working with very long source files), it would be great to also have a Jump to Previous Marker equivalent — maybe using Alt + F2 (I think this shortcut is cu...
- Wed May 31, 2017 10:23 pm
- Forum: Coding Questions
- Topic: Question About OS File Caching
- Replies: 1
- Views: 1069
Re: Question About OS File Caching
I've done some research on OS "page cache", and everything seems to suggest that all OS do a good job at providing sequent file reads from memory, therefore high speed. What it's not clear to me is how PB's FileBuffer fits in the picture, and if with a similar app that reads lots of files ...
- Wed May 31, 2017 4:10 pm
- Forum: Coding Questions
- Topic: Question About OS File Caching
- Replies: 1
- Views: 1069
Question About OS File Caching
I'm currently working on a console application in PB which is a kind of flat-file static CMS: given a project folder, it creates a list of all markdown source files to conver to html, and implements a hierarchy of settings files found within each folder, where the deeper nested files have precedence...
- Fri May 26, 2017 11:47 am
- Forum: Feature Requests and Wishlists
- Topic: Add Constant for OS default path separator
- Replies: 12
- Views: 4565
Re: Add Constant for OS default path separator
Thanks for the links @Sicro. The MSDN link was broken, here is the fixed version: https://msdn.microsoft.com/en-us/library/system.io.path.pathseparator I was recently looking at some Node.js libraries for handling path string operations, and I came across some really cool functions. For example, the...
- Wed May 24, 2017 2:09 pm
- Forum: Feature Requests and Wishlists
- Topic: Add Constant for OS default path separator
- Replies: 12
- Views: 4565
Re: Add Constant for OS default path separator
I like your approach @kenmo: the fact that it also defines the non-valid separator can be quite handy. Also, I didn't know about the syntax of assigning a char number via quotes. Do you think it would be better to have the built-in separator constant as a string or as an Ascii code? I suggested a st...