PDA

View Full Version : Edit Registry



NewsArchive
05-30-2008, 01:31 AM
Hi Friedrich,

Ran into another one.

Edit Registry function, Data Value:

"%SB_INSTALLDIR%\BuildAutomator.exe" "%1" %2

Causes:

error: GEN1006: Reference to variable %1" % has not been previously
defined.

If I try to assign this to a variable using "Set Variable" and put:

"%1" %2

into the "New Value"

I also get the same error:(

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
05-30-2008, 01:32 AM
Hi Friedrich,

>"%SB_INSTALLDIR%\BuildAutomator.exe" "%1" %2
>
>Causes:
>
>error: GEN1006: Reference to variable %1" % has not been previously
>defined.

I worked around this by sticking the "%1" %2 into into a compiler
variable and use that in the registry key<g> Apparently there is
different logic to check the contents of a compiler variable than a
normal variable which was good for me in this case<g>

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
05-30-2008, 01:33 AM
Hi Arnór,

>>"%SB_INSTALLDIR%\BuildAutomator.exe" "%1" %2
>>
>>Causes:
>>
>>error: GEN1006: Reference to variable %1" % has not been previously
>>defined.
>
> I worked around this by sticking the "%1" %2 into into a compiler
> variable and use that in the registry key<g> Apparently there is
> different logic to check the contents of a compiler variable than a
> normal variable which was good for me in this case<g>

No workaround needed.

From the manual <g>

--

Because the percent sign is used to signify the value of a variable, you
need to use two percent signs next to each other if you want to use a
percent sign in the message text of a script command.

--

In other words, use "%%1" %%2 and you are done <g>

Does this help?

Friedrich

NewsArchive
05-30-2008, 01:33 AM
Hi Friedrich,

>In other words, use "%%1" %%2 and you are done <g>
>
>Does this help?

Yes, I thought of that later;)

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php