Page 1 of 1

How to retrieve customer installed RapaGui version

Posted: Tue Jul 06, 2021 5:30 pm
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?

Re: How to retrieve customer installed RapaGui version

Posted: Thu Jul 08, 2021 8:57 pm
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)



Re: How to retrieve customer installed RapaGui version

Posted: Fri Jul 09, 2021 11:09 am
by ilbarbax
Thanks it is!

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