class JCR6 - Tricky1975/JCR6_Sharp GitHub Wiki

Class JCR6

This is the basic class which forms the core of JCR6, well together with some other classes it links to, that is. Other classes that come with the JCR6 library will also link to this, so all in all, it's pretty important ;) Now please note that some parts of this class will remain undocumented, as they should not be touched by those who do not know what they are doing, and can best be left handled by the functions this class and the drivers provide.

The features I will document are those you actually need to get things on the move ;)

string JERROR

This is just a string variable. Whenever you call to JCR6 either through the core, or to the extra classes it has, this variable will be reset to an empty string, and if any action within JCR6 fails, this variable will contain the error message. Please note, JCR6 has been designed not to crash out by itself or to throw any errors you can get with 'try-catch' routines. When functions that had to return a value fail they'll mostly return 'null', the number zero or an empty string, and set the error in JERROR. If the failed function is a void, then only JERROR contains the error message, since void functions do not return values, after all.

string Recognize(string filename)

I doubt you'll ever need this yourself, and the 'Dir' routine calls it automatically, but perhaps you do have some user for it. ;) It does try to recognize which file-read-driver would be required to read the file and will return "NONE" if none of the currently loaded drivers recognize this file as their own.

TJCRDIR Dir(string file)

Will scan the JCR6 resource for the file list and store that in a class variable and return that variable. This variable can later be used to actually read the content of the files inside the directory of the chosen resource. These functions are found in the TJCRDIR class itself. Please note that file names within a JCR6 resource are CASE INSENSITIVE... Yes, even on Mac and Linux (even when a real folder is faked into a JCR6 resource).

Please note that TJCRDIR is only for reading. the TJCRCreate class is for writing JCR6 files.

⚠️ **GitHub.com Fallback** ⚠️