PDA

View Full Version : Reg_Read


SGGardiner
06-17-2004, 05:40 AM
I am trying to setup a macro to read a value from the registry using the Reg_Read system function. As soon as I enter the function name in the Value textbox, VBP trying to display the tooltip and I get an error message (please see attached) above expanding the macro value.

Is there anyway round this?

SGGardiner
06-17-2004, 05:42 AM
Oops. Attachment!

kinook
06-17-2004, 07:40 AM
I'm not sure what could cause an error messagebox to be shown instead of a tooltip. When I do Insert Macro -> REG_READ -> OK and hover the mouse over the field, I get a tooltip with "<Error expanding macro value: Invalid hive name>" (expected since the value has not been set). You might try re-downloading and re-installing VBP in case something got corrupted.

As far as the error message itself, it sounds like the registry key you provided is not valid. Take a look at the RegEdit.bld sample for a sample use of the REG_READ macro.

SGGardiner
06-17-2004, 08:29 AM
I have only recently upgrade to 5.4, but I can install it again from scratch.

As for the key being invalid, I never get the chance to enter any of the parameters.