Converting _O_PLATFORM PROPERTIES to Get system info

2018-12-11 Thread Drew Waddell via 4D_Tech
Is anyone using _O_PLATFORM PROPERTIES? How do you change your code that used the old version to the new Get system info? The osVersion contains far more data than the previous command and I am afraid striping information off would just be prone to errors. Thanks, Drew ***

Re: Converting _O_PLATFORM PROPERTIES to Get system info

2018-12-11 Thread Tilman Haerdle via 4D_Tech
Drew, we recently switched to Get system info. Stating the obvious first, call this command once and once only on startup as it can take more than a second to collect all information, especially on Windows systems. Next, yes you have to adapt your code in order to make iit work with Get system

Re: Converting _O_PLATFORM PROPERTIES to Get system info

2018-12-11 Thread Chip Scheide via 4D_Tech
depending on what property you are looking for, I have found the simplest way to manage which platform (Windows/Mac) is to use the 4D Konstant 'Folder separator': if (Folder separator = ":") //this is a Mac do_Mac_Stuff else //this is Windows do_Windows_stuff end if Depending on your need,

Re: Converting _O_PLATFORM PROPERTIES to Get system info

2018-12-11 Thread Rob Laveaux via 4D_Tech
> On 11 Dec 2018, at 14:49, Drew Waddell via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Is anyone using _O_PLATFORM PROPERTIES? How do you change your code that > used the old version to the new Get system info? The osVersion contains far > more data than the previous command and I am afra

Re: Converting _O_PLATFORM PROPERTIES to Get system info

2018-12-11 Thread Christian Sakowski via 4D_Tech
> depending on what property you are looking for, I have found the > simplest way to manage which platform (Windows/Mac) is to use the 4D > Konstant 'Folder separator': > > if (Folder separator = ":") //this is a Mac > do_Mac_Stuff > else //this is Windows > do_Windows_stuff > end if …or jus

Re: Converting _O_PLATFORM PROPERTIES to Get system info

2018-12-11 Thread Chip Scheide via 4D_Tech
not available in v13... On Tue, 11 Dec 2018 16:19:50 +0100, Christian Sakowski wrote: >> depending on what property you are looking for, I have found the >> simplest way to manage which platform (Windows/Mac) is to use the 4D >> Konstant 'Folder separator': >> >> if (Folder separator = ":") //t

RE: Converting _O_PLATFORM PROPERTIES to Get system info

2018-12-11 Thread Drew Waddell via 4D_Tech
Re: Converting _O_PLATFORM PROPERTIES to Get system info > On 11 Dec 2018, at 14:49, Drew Waddell via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Is anyone using _O_PLATFORM PROPERTIES? How do you change your code that > used the old version to the new Get system info?