Page 1 of 1 1
Topic Options
#120110 - 2004-05-25 03:00 PM Error in Expression when making mapping
CasterTroy Offline
Lurker

Registered: 2004-05-25
Posts: 3
Hello Everyone,

I have the following problem.
When I try to make a mapping to a networkdrive as showed in the example, I get the error "Error in Expression"
When I change the name of the server "pc-pdc" to "pcpdc" there's no problem at all. Is this a bug or something. ( Is it a problem with the "-" character ? )
The code I used is shown below

Code:
 AT (19,0) USE P: \\pc-pdc\apps ; connect met de apps-schijf
IF @ERROR = 0
? " Mapping naar apps-schijf " COLOR G+/b "GESLAAGD "
ELSE " Mapping naar apps-schijf " COLOR R+/b "GEFAALD "
ENDIF



Top
#120111 - 2004-05-25 03:02 PM Re: Error in Expression when making mapping
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it's just problem with your syntax.

AT (19,0) USE P: "\\pc-pdc\apps" ; connect met de apps-schijf

is correct.
_________________________
!

download KiXnet

Top
#120112 - 2004-05-25 03:29 PM Re: Error in Expression when making mapping
CasterTroy Offline
Lurker

Registered: 2004-05-25
Posts: 3
OK .. thnx it's working now.
But when I don't use the "-", I have no problem with the syntax

Top
#120113 - 2004-05-25 03:32 PM Re: Error in Expression when making mapping
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
because kixtart is forgiving.
but when you use "-" in there, it can't forgive.
as how would it differentiate between string and math operation on strings?
and obviously, substracting string from string is not possible.
_________________________
!

download KiXnet

Top
#120114 - 2004-05-25 03:45 PM Re: Error in Expression when making mapping
CasterTroy Offline
Lurker

Registered: 2004-05-25
Posts: 3
Yeah .. you're right .. actually .. it's quite logical.

Thnx Lonkero

Top
#120115 - 2004-05-26 04:42 AM Re: Error in Expression when making mapping
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Strings should always be enclosed in quotes. There's even a FAQ on this.
_________________________
There are two types of vessels, submarines and targets.

Top
#120116 - 2004-05-26 06:38 AM Re: Error in Expression when making mapping
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I just wonder when ruud is gonna read it.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, 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.069 seconds in which 0.038 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