Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 669

LiveCode Builder • Determine the version number of the OS

$
0
0
Hi,
Is there a way that code in a Livecode Builder (LCB) handler can determine the version number of the parent operating system. In Livecode Script this can be read using a shell command e.g.

CODE:

function MacOSVersion   put "sw_vers"  into tCommand   put shell(tCommand) into tResult   put line 2 of tResult into tOSVersion   put the last word of tOSVersion into tOSVersion   return tOSVersionend MacOSVersion
Unfortunately I can not find a way of achieving the same result in LCB. Any ideas?

Statistics: Posted by Simon Knight — Sat Jul 13, 2024 10:58 am



Viewing all articles
Browse latest Browse all 669

Trending Articles