set var vThis_Hub = 100001 

 

try:

Clear var vThis_Hub

set var vThis_Hub Int = 100001   

 

It might be seeing a text value vs. int and <= is failing. Run trace and see
what the value is for vThis_Hub  I am almost sure it is 'Text'   

 

 

 

Paul D.

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Steve Breen
Sent: Wednesday, December 16, 2009 7:34 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Displaying Message On Form on Initial Entry of Data

 

Karen,

 

Please note I have been diligent in testing and as long as I do a "= to" for
vThis_Hub then I get the desired results. Message 'Stop and review the data
now' is returned.

 

But if I try a "<="  I always get the second result. It is almost like I can
not use the <- on a variable.

 

Note: The vthisparentcustid works great also.

 

Anyone have any ideas?

 

-- W2.rmd
-- Set variable vMessage2
-- Used to remind a user to Check A Spread Sheet for Customer Equipment
Verification
-- Major Assumption - var This_CustNub2 is set on form entry
-- Major Assumption - var vThis_hub is set on form entry

Clear var vWarranty
Clear var vthis_parentcustid
Clear var vThis_Hub

set var vthis_parentcustid integer = 193
set var vThis_Hub = 100001

-- If vthis_Hub = 100001 then - This works great 
If vthis_Hub le 99999 then - This will not work
-- If vthis_parentcustid = 105 then - This works great
SET VAR vMessage2 = 'Stop and review the data now'
ELSE
SET VAR vMessage2 Text = 'test2'
ENDIF
RECALC VAR
RETURN

 

 

 

 

  _____  

From: [email protected] on behalf of [email protected]
Sent: Wed 12/16/2009 12:33 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Displaying Message On Form on Initial Entry of Data

Your "if" clause is valid.  You can put as many conditions as you want in an
If clause.

Karen





Karen and Bill can you combine variable's ?

Such as follows:



If vMessageDisplayed = 'yes' and vMessageDisplayed1 <= 100 THEN
             SET VAR vMessage = 'Stop and review the data now'
       ELSE
             SET VAR vMessage TEXT = NULL
       ENDIF
       RECALC VAR




 

Reply via email to