conversion of data

Rod Caddy rcaddy at pro-set.com
Mon Aug 16 15:26:03 PDT 2004


On Fri, 13 Aug 2004 15:15:43 -0500, Rod Caddy wrote:
> I am not sure that I really know how to ask this question.  I need
> to be
> able to look at the value of the data in a field and pad another
> field
> with the number of zeros that the data tells me.
> Example:
> In a control file a 1 digit field is set to only allow the numbers
> 1-8.
> Whatever the number is I will take and pad another field with that
> number
> of zeros minus the number of characters that my starting number
> takes up.
> Control file has 6 in it.
> My starting number is 10.
> My math would be 6-2=4.
> My ending number would be 000010.
> I can test for this and have a long drawn out process but I was
> trying to
> shorten this.  Any Ideas would be appreciated.
>
> Rod Caddy
> Pro-Set Systems
> http://www.pro-set.com
> http://www.towtruck2000.com
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list

I just wanted to say thanks to Richard Kreiss and Ken Brody for their suggestions on this problem.  Worked perfectly.


Rod Caddy
Pro-Set Systems	
rcaddy at pro-set.com
http://www.pro-set.com
http://www.towtruck2000.com



More information about the Filepro-list mailing list