Page 1 of 1 1
Topic Options
#31661 - 2002-10-31 07:36 PM Argh..what's with my array? :(
Seks Offline
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 Offline
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 [Wink]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#31663 - 2002-10-31 09:06 PM Re: Argh..what's with my array? :(
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You should not use any vars in quotes. It is not best practice.

That too is in the manual. (well, the newer ones anyway)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#31664 - 2002-10-31 09:12 PM Re: Argh..what's with my array? :(
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You can even force this with SETOPTION().
_________________________
There are two types of vessels, submarines and targets.

Top
#31665 - 2002-10-31 09:54 PM Re: Argh..what's with my array? :(
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Jens,
You forgot to mention that it too is explained in the manual. [Wink]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#31666 - 2002-10-31 10:42 PM Re: Argh..what's with my array? :(
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Nope, the manual has already been mentioned in itself. Thus, I didn't waste keystrokes on that one [Wink]
_________________________
There are two types of vessels, submarines and targets.

Top
#31667 - 2002-10-31 11:15 PM Re: Argh..what's with my array? :(
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Seks,
Hope you don't mind the flaming about the manual.

Once you read the manual, you may be interested in reading this FAQ as well:

Topic: Why does the console display zeros and ones (amongst others)?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#31668 - 2002-10-31 11:24 PM Re: Argh..what's with my array? :(
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Seks,
BTW, welcome to the board. I see your email is .ca

So what part of .ca is it?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#31669 - 2002-11-01 04:14 PM Re: Argh..what's with my array? :(
Seks Offline
Fresh Scripter

Registered: 2002-10-31
Posts: 20
I'm from Edmonton, AB. You?
Top
#31670 - 2002-11-01 04:16 PM Re: Argh..what's with my array? :(
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Look up or down... it's on every post...

Posts: 3410 | From: Fort Frances, Ontario, Canada | Registered: Jun 2001 | IP: Logged
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#31671 - 2002-11-01 08:08 PM Re: Argh..what's with my array? :(
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh those canadians!
they are like one big family [Smile]

still, family is worst [Big Grin]
_________________________
!

download KiXnet

Top
#31672 - 2002-11-01 08:10 PM Re: Argh..what's with my array? :(
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Just so long as he's not an Easterner. [Wink]
[Big Grin] [Big Grin] [Big Grin]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#31673 - 2002-11-01 08:12 PM Re: Argh..what's with my array? :(
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
easterner = mother in law?
_________________________
!

download KiXnet

Top
#31674 - 2002-11-01 08:14 PM Re: Argh..what's with my array? :(
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
That too...

Don't you remember the long geography lesson we gave you a while back?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#31675 - 2002-11-01 08:16 PM Re: Argh..what's with my array? :(
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
that's why I teasing you!

I just wonder how easy it would be for me to move and be THE eastern
_________________________
!

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
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.185 seconds in which 0.135 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