[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Numeric Vars



Bill,

Try to display the variables right after the IF:

if #New_Posted_amt > #Ttl_Proj_Amt2
     SHOW '#New_Posted_amt ' #New_Posted_amt
     SHOW '#Ttl_Proj_Amt2  ' #Ttl_Proj_Amt2
      do Print-Error-Message
end-if




Bill Beckner <Bbeckner@ICC.CC.IL.US>@list.iex.net> on 07/12/2001 12:13:29
PM

Please respond to sqr-users@list.iex.net

Sent by:  "Discussion of SQR,              Brio Technology's database
      reporting language"              <SQR-USERS@list.iex.net>


To:   SQR-USERS@list.iex.net
cc:
Subject:  Numeric Vars


Here's a puzzle for all you SQR experts....

I've got these two numeric variables, assigned the same amount, and I
display their values like this:

    SHOW '#New_Posted_amt ' #New_Posted_amt
    SHOW '#Ttl_Proj_Amt2  ' #Ttl_Proj_Amt2

And the following shows in the sqr.log:

    #New_Posted_amt 12696.840000
    #Ttl_Proj_Amt2  12696.840000

When the following comparison is performed:

    if #New_Posted_amt > #Ttl_Proj_Amt2
        do Print-Error-Message
    end-if

I always get an error message!!!  Any ideas?  We're using SQR 4.3.4

Thanks!!!

Why does SQR

--
William Beckner -- Stunt Programmer (Just call me "Bill")
Illinois Central College, Rm L141 -- East Peoria, IL  61635-0001
PH: (309) 694-8419 -- FAX: (309) 694-8995
"An unfinished thought is like a day without..."