www.icetips.com  Icetips Utilities Documentation 11/14/2010    

Armadillo Class: UpdateEnvironmentVars

Previous  Top  Next  


Prototype: (none)

 

This method calls the UpdateEnvironment function in the ArmAccess.dll, which updates the Armadillo environment variables.  This can be useful if you want to make sure that variables are updated before you check the EXPIRED variable to see if the program has expired.  Since Armadillo cannot detect automatically if the program expires as it is running, you need to check for it if the program might be run for days at the time without being closed down.

 

Example:

ITA  ITArmadilloClass

US   String(255)

EX   String(255)

Code

ITA.UpdateEnvironmentVars

EX = ITA.GetEnvVar('EXPIRED')

US = ITA.GetEnvVar('ALTUSERNAME')

ITA.ODS('  Expired  = ' & EX)

ITA.ODS('  Alt user = ' & US)

If Clip(Upper(US)) = 'DEFAULT'

  !! This is a demo

Else

  !! This is NOT a demo

End

If Clip(Upper(EX)) = 'TRUE'

  !! Expired

Else

  !! Not expired

End

 

 

See also:

InstallKey

ShowEnterKeyDialog

 



Direct link to this page: http://www.icetips.com/manuals/utilities/updateenvironmentvars_armadilloc.htm