Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #663

Re: Crashing on DEQU

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Crashing on DEQU
Date Mon, 4 Apr 2011 11:32:57 +0200
Lines 45
Message-ID <8vti07FoucU1@mid.individual.net> (permalink)
References <Lsfmp.2637$Ir.1121@newsfe13.ams2>
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-1"; reply-type=response
Content-Transfer-Encoding 7bit
X-Trace individual.net NyCfFm8EN2VhhGHFpdjH3gOp2s4gfPQ5fHBiPNeX41NSN7NSQI
Cancel-Lock sha1:xyRwzdN3s7hkL/IR3OHCpRJvzPU=
X-Priority 3
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.5994
X-EsetId 35EFE320EBB6313066AF
X-EsetScannerBuild 9015
Xref x330-a1.tempe.blueboxinc.net comp.lang.clipper.visual-objects:663

Show key headers only | View raw


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 | NextPrevious in thread | Find similar | Unroll thread


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