Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #663
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Crashing on DEQU |
| Date | 2011-04-04 11:32 +0200 |
| Message-ID | <8vti07FoucU1@mid.individual.net> (permalink) |
| References | <Lsfmp.2637$Ir.1121@newsfe13.ams2> |
Hi Martin, Space(10) returns a String with 10 characters ( ten times CHR(32) ) ? Space(10) == " " // TRUE (with 10 CHR(32) ) ? Space(10) == " " // FALSE ? Space(10) == NULL_STRING // FALSE ? Space(10) == "ABCGE " // FALSE ? Empty(Space(10)) // TRUE ? Space(10) == 25 // Compiler error If you look to the code above, you will find that the comparison may be ambiguous. regards Urs "Martin" <spam@spam.spam> schrieb im Newsbeitrag news:Lsfmp.2637$Ir.1121@newsfe13.ams2... > Hello > > We are getting an error on a string compare line. > LOCAL cTable AS STRING > > > cTable := SELF:dbOptParam:FIELDGET(#OP_TableNo) > > DO CASE > CASE cTable <= Space(10) <----- This line is crashing > > > > > OP_TableNo C 10 > > according to the error system it is going wrong in DEQU (FuncSym) with > Gencode 30. > > Arg 1 is Numeric 2.00 > Arg 2 is the text from the field > > It is crashing on ArgNum 2, expecting a Numeric but getting a string > > Any ideas please?
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread
Crashing on DEQU Martin <spam@spam.spam> - 2011-04-04 09:39 +0100
Re: Crashing on DEQU "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-04-04 18:57 +1000
Re: Crashing on DEQU Martin <spam@spam.spam> - 2011-04-04 10:11 +0100
Re: Crashing on DEQU "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2011-04-04 11:32 +0200
csiph-web