Page 1 of 1 1
Topic Options
#21362 - 2002-05-08 05:57 PM Variable in DELVALUE command
qboyd00 Offline
Fresh Scripter

Registered: 2002-04-25
Posts: 15
Does anyone know the correct syntax to use a variable in the DELVALUE command in KIX?
Top
#21363 - 2002-05-08 06:08 PM Re: Variable in DELVALUE command
qboyd00 Offline
Fresh Scripter

Registered: 2002-04-25
Posts: 15
Yes....the example in the documentation is correct, but when using a variable like $example. What is the correct syntax.
Top
#21364 - 2002-05-08 06:10 PM Re: Variable in DELVALUE command
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
To use a variable in a function (like DELVALUE) you include the variable outside of any quotation marks. Examples:

$subkey="HKLM\Software"
$entry="your entry here"
DELVALUE($subkey,$entry)

or...

DELVALUE("HKLM\Software\"+@userid,"your entry here")

[ 08 May 2002, 18:10: Message edited by: Chris S. ]

Top
#21365 - 2002-05-08 06:12 PM Re: Variable in DELVALUE command
qboyd00 Offline
Fresh Scripter

Registered: 2002-04-25
Posts: 15
Thanks for your help
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 507 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.054 seconds in which 0.021 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org