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
***
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
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,
> 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
> 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
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
> 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?
7 matches
Mail list logo