| Home | All functions | Categories |
vuEZRegPut(LONG,*CSTRING,*CSTRING), Signed
Saves a value in the Windows registry without requiring knowledge of the registry key structure. The function automatically creates the required key and subkeys. Keys are stored under:
HKEY_CURRENT_USER\Software\vuPrograms\<Your Program Name>\KeyName if ByUser = 1HKEY_LOCAL_MACHINE\Software\vuPrograms\<Your Program Name>\KeyName if ByUser = 0This allows each application to store values independently without overwriting each other.
| Parameter | Data Type | Description |
|---|---|---|
| ByUser | LONG | 0 = Store value with the PC (all users) 1 = Store value with the current logged-in user |
| KeyName | CSTRING(128) | Alphanumeric key name to store the value under |
| KeyValue | CSTRING(128) | The data value to store |
1 (True) on success, 0 (False) on failure.
! Example: Store a registration code for application "Trivette"
KeyName = 'Registration Code'
KeyValue = '07 0F CB 4A 9D'
IF vuEZRegPut(0, KeyName, KeyValue) = 1
MESSAGE('Registration saved successfully.')
END
vuEZRegGet to retrieve stored values.KeyName will not conflict between applications.| Home | All functions | Categories |