

- #Purebasic examinedirectory mac os#
- #Purebasic examinedirectory full#
- #Purebasic examinedirectory code#
- #Purebasic examinedirectory Offline#
- #Purebasic examinedirectory download#
Convert the file size to a padded string the same as with the index value above, but allow space for the maximum size of a quad. Modify = FormatDate("%dd/%mm/%yyyy", Files()\DateModified) These lines convert the three date values to something more familiar.Ĭreate = FormatDate("%dd/%mm/%yyyy", Files()\DateCreated)Īccess = FormatDate("%dd/%mm/%yyyy", Files()\DateAccessed) AddGadgetColumn( #Files, 1, "Name", 200)ĪddGadgetColumn( #Files, 2, "Created", 100)ĪddGadgetColumn( #Files, 3, "Accessed", 100)ĪddGadgetColumn( #Files, 4, "Modified", 100)ĪddGadgetColumn( #Files, 5, "Attributes", 150) Add columns to the ListIconGadget to hold each property. A list icon gadget to hold the file list and properties. A text gadget to show the name of the folder. OpenWindow( #WindowFiles, 50, 50, 450, 400, "File Properties", Flags) This line defines a flag for the window attributes by OR-ing together the desired attribute constants.įlags = #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_TitleBar Open a GUI window. The interesting stuff starts to happen here. SortStructuredList( Files(), #PB_Sort_Ascending, OffsetOf(FILEITEM\Name), #PB_String) FinishDirectory(0)ĮndIf Sort the list into ascending alphabetical order of file name. Files()\Name = DirectoryEntryName(0)įiles()\Attributes = DirectoryEntryAttributes(0)įiles()\DateCreated = DirectoryEntryDate(0, #PB_Date_Created)įiles()\DateAccessed = DirectoryEntryDate(0, #PB_Date_Accessed)įiles()\DateModified = DirectoryEntryDate(0, #PB_Date_Modified)ĮndIf Wend Close the directory. And populate it with the properties of the file. If DirectoryEntryType(0) = #PB_DirectoryEntry_File Add a new element to the list. If the directory entry is a file, not a folder. Loop through until NextDirectoryEntry(0) becomes zero - indicating that there are no more entries. If this is ok, begin enumeration of entries. Result = ExamineDirectory(0, Folder, "*.*") Open the directory to enumerate its contents. This function gets the home directory for the logged on user. Define.l Event, EventWindow, EventGadget, EventType, EventMenu

These variables will receive details of GUI events as they occur in the program. Define.s Access, Attrib, Create, Folder, Modify, Msg, Num, Size And some working variables to make things happen. Enumeration #Folder #Files EndEnumeration Now we define a list of files using the structure previously specified. Enumeration #WindowFiles EndEnumeration This is an enumeration to identify controls which will appear on the window. Structure FILEITEMĮndStructure This is a constant to identify the window. The structure for file information as before. Managing GUI elements, using that gadget would defeat this object a bit. Note that PureBasic provides a far easier way of getting this particular job doneĪlready - the ExplorerListGadget() but, as the example is intended to introduce

So let's revisit the file propertiesĮxample from previous items again and turn it into a GUI application. The creation of graphical user interfaces (GUI) too. In addition to the console window, PureBasic supports Powerful and advanced debugger for easy analyzes of code.UserGuide - Building a graphical user interface (GUI).No further DLL’s require to process executables.NET Libraries.īelow are some noticeable features which you’ll experience after PureBasic free download.
#Purebasic examinedirectory full#
It supports full unicodes with built-in containers like list, map and array. It doesn’t require any additional application or external DLLs for initiating or runtime or anything to process the executables. It includes a set of components and commands over 1600 to offer users a platform to easily and quickly build applications, programs and games.
#Purebasic examinedirectory mac os#
The application has various features such as its portability for platforms includes Windows, Linux, Mac OS and also support for both 32 and 64-Bit system architect. PureBasic is a reliable and efficient language build in a flexible and friendly environment.
#Purebasic examinedirectory download#
You can also download GigaSoft ProEssentials Pro. Many users can utilize the language in their project either they are beginners or experts all can use the application and optimize their workflow with modern and latest language availability.
#Purebasic examinedirectory code#
It has a fast and powerful execution time with simple and easy code syntax. PureBasic is an impressive application equipped with programming language developed with basic and standard rules and attributes.
#Purebasic examinedirectory Offline#
It is full offline installer standalone setup of PureBasic Free Download. PureBasic Free Download Latest Version for Windows.
