Dear NameME,
Another possibility is it use our tool kixref, which you can find on our
site.
The last part shows the defined variables and also the amount of references.
In your situation: $val only reference once.
code:
Kixref test-script.kix
1 1 Function WRITEINREG($sub,$name,$value,$dtype)
2 Dim $n
3 $n=WriteValue($sub,$name,$val,$dtype)
4 1 EndFunction
5
6 $sub="HKEY_CURRENT_USER\Software\Microsoft\Internet Connection Wizard"
7 $name="Completed"
8 $value="01000000"
9 $dtype="REG_BINARY"
10
11 WRITEINREG($sub,$name,$value,$dtype)
.
Kixref test-script.kix
.
DIM c 2
$dtype v 1 3 9 11
ENDFUNCTION c 4
FUNCTION c 1
$n v 2 3
$name v 1 3 7 11
$sub v 1 3 6 11
$val v 3
$value v 1 8 11
writeinreg ??? 11
writeinreg udf 1
WRITEVALUE f 3
.
Kixref test-script.kix
.
Summary - kixtart 4.10/3.07e
boldsymbols 0
commands 3
functions 1
labels 0
macros 0
variables 6
env 0
udf 1
? 1
gosub 0
goto 0
12
.
Block Structure
.
do:until [0:0]
for|each:in|to:step|next [0|0:0|0:0|0]
function:endfunction [1:1]
if:else:endif [0:0:0]
select:case:endselect [0:0:0]
while:loop [0:0]
.
1 blocks
.
Kixref test-script.kix
.
dim 1 c
$dtype 4 v
endfunction 1 c
function 1 c
$n 2 v
$name 4 v
$sub 4 v
$val 1 v
$value 3 v
writeinreg 1 ???
writeinreg 1 udf
writevalue 1 f
greetings.
btw: we will extend the option "/warnings". it will show also variables referencing only once.
(TO_DO)