It is defined as text and when I show var I get 0123, but when it is passed as 
default value for EmpID it is 123. What I did was used:
property <component ID> textvalue .varEmpID
and it passed fine.  I solved my problem but am wondering why this happens?
Tom Hart



----- Original Message ----
From: Emmitt Dove <[EMAIL PROTECTED]>
To: RBASE-L Mailing List <[email protected]>
Sent: Wednesday, October 15, 2008 4:09:49 PM
Subject: [RBASE-L] - RE: Passing a variable


Tom,
 
Unless you specifically type the variable as TEXT, R:BASE may well make it an 
integer when it sees “0123.”
 
Try this:
 
SET VAR vx TEXT = ‘0123’
SET VAR vy = ‘0123’
SHO VAR
 
You’ll likely see vy is an INTEGER type.
 
Emmitt Dove
Manager, DairyPak Business Systems
Evergreen Packaging, Inc.
[EMAIL PROTECTED]
(203) 214-5683 m
(203) 643-8022 o
(203) 643-8086 f
[EMAIL PROTECTED]
 
From:[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of TOM HART
Sent: Wednesday, October 15, 2008 4:53 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Passing a variable
 
I have a form that my employees use to clock in and out, and has worked like a 
charm for over a year.  We us the last 4 digits as employee id for them to 
clock in, and until now never had an employee with a leading 0, example 0123.  
the field is defined as a text.  I use  the variable as default value for 
column EmpID but the variable does not pass the leading 0, example only 123.  
What I did was used a property command the set the EmpID and all works fine, 
but my question is why does the variable not pass through to the default value 
as 0123 but instead 123.
Tom Hart

Reply via email to