How to retrieve customer installed RapaGui version

Discuss GUI programming with the RapaGUI plugin here
Post Reply
ilbarbax
Posts: 112
Joined: Thu Apr 01, 2010 6:41 pm

How to retrieve customer installed RapaGui version

Post by ilbarbax »

How can I get the version available on the machine of rapagui? in few words should be the opposite of @REQUIRE.

it may be possible that my application requires rapagui 1.0 but in the machine it is available rapagui1,2 that then should works as the system checks for upward versions, but from my application how can I retrieve that the available version is the 1,2 rather than the minimum required of 1,0?
plouf
Posts: 467
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: How to retrieve customer installed RapaGui version

Post by plouf »

Code: Select all

@REQUIRE "RapaGUI"

Function CheckVersion(a,b)
	If b.name="RapaGUI"
		SystemRequest("RapaGUI","Version "..b.version.."."..b.revision,"OK")
	EndIf
EndFunction
t = GetPlugins()

ForEach(t, CheckVersion)


Christos
ilbarbax
Posts: 112
Joined: Thu Apr 01, 2010 6:41 pm

Re: How to retrieve customer installed RapaGui version

Post by ilbarbax »

Thanks it is!

I missed completely this part of the help guide...I was searching in the Rapagui help!!
Post Reply