Identifying the operating system can be performed with Python or Basic language.
- ComputerName property is solely available for Windows. Basic calls to Python macros help overcome %PRODUCTNAME Basic limitations.
Using a Python class:
""" the_module """
@@ -50,7 +49,8 @@
Using a Basic classmodule:
%PRODUCTNAME Basic lacks MacOS X native recognition. Platform identification is possible using %PRODUCTNAME Application Programming Interface (API).
- Option Compatible
+ ''' Module name: Platform '''
+ Option CompatibleOption ClassModuleOption Explicit
@@ -92,6 +92,7 @@
End SelectEnd Property ' Platform.PathDelimiter
+ ComputerName environment variable is solely available for Windows. Basic calls to Python macros help overcome %PRODUCTNAME Basic limitations.
Examples:
With Python>>> from < the_module > import Platform