#31661 - 2002-10-31 07:36 PM
Argh..what's with my array? :(
|
Seks
Fresh Scripter
Registered: 2002-10-31
Posts: 20
|
dim $print_share[1] $print_share[0]="9105hp01" $print_share[1]="9105hp02" addprinterconnection("\\fpserver\$print_share[0]") addprinterconnection("\\fpserver\$print_share[1]")
Ran the above and I get 18011801 which from what I've found, printers not found???
|
|
Top
|
|
|
|
#31662 - 2002-10-31 08:18 PM
Re: Argh..what's with my array? :(
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
You can't use an array element in a quoted string.
("\\fpserver\" +$print_share[0])
It's in the manual
|
|
Top
|
|
|
|
#31669 - 2002-11-01 04:14 PM
Re: Argh..what's with my array? :(
|
Seks
Fresh Scripter
Registered: 2002-10-31
Posts: 20
|
I'm from Edmonton, AB. You?
|
|
Top
|
|
|
|
#31672 - 2002-11-01 08:10 PM
Re: Argh..what's with my array? :(
|
Les
KiX Master
   
Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
|
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|