Here is one:

set var vSTime Time  = 13:23:01
set time format HHMMSS
set var vTTIme Text = .vSTime
set var vstr=((ctxt(.vTTIme)) + (SFIL('0', 8 - (slen((ctxt(.vTTIme)))))))


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 10:24 AM
Subject: [RBASE-L] - Formatting a value


>
> I'm trying to pad a variable with zero's on the end for an EDI application
in
> RBWin 6.5++ and I'm missing something on the fomat function. The variable
> starts as a time variable:
>
> var vSTime Time  = 13:23:01
> set time format HHMMSS
> set vat vTTIme Text = .vSTime
> set time format HH:MM:SS
>
> Show var vTTime
> 132301
> Now the kicker. I need var vTTime to be converted to an 8 character
string,
> to represent hundredths of a second,
> i.e. 13230100
>
> I keep trying the Format function, but I'm missing SOMETHING in the format
> command. Anyone got a string conversion that will work consistantly?
>
> TIA
>
> Damon
>
> Damon D. Kaufman
> President
> Stalder Spring Works, Inc
> ISO-9002 / QS-9000 Certified
> 2345 S. Yellow Springs St.
> Springfield, Ohio 45506
> Voice 937-322-6120
> Fax 937-322-2126
> email: [EMAIL PROTECTED]
>
>

Reply via email to