[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Author Index][Subject Index]

Empty string in char. keyword



Hi,

 how do I specify an empty string in a character keyword in a .prg?

DEFINE/LOCAL ROOT/C/1/180
!makes ROOT contain a "?":
WRITE/OUT ",{ROOT},"
,?,

DEFINE/LOCAL ROOT/C/1/180 ""
WRITE/OUT ",{ROOT},"
,"",
!!!

!compare: 
DEFINE/LOCAL ROOT/C/1/180 "test"
WRITE/OUT ",{ROOT},"
,test,


ROOT = "" 
!should do the same, really, but generates an error: 
Invalid syntax in COMPUTE/KEY...
ROOT = "test" 
!works as expected.

So, how *is* the empty string specified in MIDAS? I need ROOT to be empty in
some cases, that is containing really nothing.

I'll use a workaround for my particular problem, but I'll still be excited to
see the answer.

Regards,

Sebastian Jester

--
Max-Planck-Institute for Astronomy	email: jester@mpia-hd.mpg.de
Koenigstuhl 17				Phone: +49-(0)6221-528 257
D-69117 Heidelberg			Fax:   +49-(0)6221-528 246
Germany