Page 1 of 1 1
Topic Options
#119156 - 2004-05-06 06:46 PM Function Usage
Sardis Offline
Fresh Scripter

Registered: 2004-01-16
Posts: 28
Loc: Montgomery, AL
I have the following function in my script:
function DelPrinterConnections()
dim $c,$bk,$conn
$c=0
$bk="HKEY_CURRENT_USER\Printers\Connections"
$conn=enumkey($bk,$c)
while @error=0
$c=$c+1
$conn=delkey($bk+"\"+$conn)
$conn=enumkey($bk,$c)
loop
endfunction

How do I invoke this funtion from another part of the script?
_________________________
Jason A King

Top
#119157 - 2004-05-06 06:54 PM Re: Function Usage
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
by writing:
delprinterconnections

or:
delprinterconnections()

and that can be issued anywhere in the script.
as an example:

Code:
break on
"my small test script" ?
delprinterconnections
? "printer connections deleted"

_________________________
!

download KiXnet

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
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.052 seconds in which 0.026 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