RE: Get System Info vs PLATFORM PROPERTIES

2019-07-14 Thread David Ringsmuth via 4D_Tech
John,


C_OBJECT(System_Info_ob)
System_Info_ob:=Get system info

vPlatformOS:=System_Info_ob.osVersion

David Ringsmuth
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Get System Info vs PLATFORM PROPERTIES

2019-07-14 Thread JOHN BAUGHMAN via 4D_Tech
So PLATFORM PROPERTIES has been deprecated in favor of Get System Info. Get 
System Info is far ore informative,  but am I the only one finding the text 
values of some of the properties near impossible to work with in a consistent 
manner across multiple platforms? Specifically osVersion and processor.

For example. If you need, for whatever reason, to know what OS version 4D is 
running in, osVersion might return…

Microsoft Windows 10 Professionnel 10.0.14393
OR
macOS 10.13.6 (17G7024)

Unless I am not seeing a way, how can one parse the returned value to get a 
usable value across multiple platforms now and going forward? PLATFORM 
PPROPERTIES returned a Long Integer that you could work with. 

For osVersion, I think it would help if there was a property that just returned 
the long int value of the os, ie. osVersioinNumber -> 10.0.14393  

Not sure what could be done for processor. 

John


John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**