WebClient Version

Progress Knowledgebase 21792 talks about retrieving the VersionName from the registry using the LOAD, USE, GET-KEY-VALUE and UNLOAD commands.

Has anyone done this? If so, can I get a copy of the required code, please?

Thanks
 
Got a solution. Simpler than I thought.

/*------------------------------------------------------------------------------
Purpose:
Parameters: <none>
Notes:
------------------------------------------------------------------------------*/
DEF VAR v-Key_Name AS CHAR NO-UNDO.

ASSIGN v-Key_Name = "Software\Vendor\Application".

/* Attempt to find the required section in the registry */
LOAD v-Key_Name NO-ERROR.

IF ERROR-STATUS:ERROR THEN
RETURN "".

/* Now try and get the property */
USE v-Key_Name.

GET-KEY-VALUE SECTION "" KEY "VersionName" VALUE fi-WC_Version.

/* Tidy up */
UNLOAD v-Key_Name.

END PROCEDURE.
 
Top