[Date Prev][Date Next][Subject Prev][Subject Next][Date Index][Subject Index]

Re: way to tell if a S/G is a string vs number, and way to for XPL to determine XY version of execution platform



Reply to note from wbass@xxxxxxxxxxxx Wed, 6 Nov 2024 22:23:27 +0000 (UTC)

> is there an approved way for an XPL program to tell whether it is
> running on Xy3 vs Xy4?

This is one of the first problems I tackled when Signature/XyWrite 4 came out. The following works
because <VA$VE>, which was added in Sig/Xy4 and returns the version number (as a string),
reliably returns a zero-length string in Xy3(+):

<IF@SIZ(<VA$VE>){greater_than}0><PRVersion 4+><EX><EI><PRVersion
3><EX>

--
Carl Distefano
cld@xxxxxxxxxx

Attachment: bin9x5Ig3LSNE.bin
Description: Binary data