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