EDIT Quiz

Jay Ashworth jra at baylink.com
Wed Aug 24 09:52:12 PDT 2011


----- Original Message -----
> From: "Nancy Palmquist" <nlpalmquist at comcast.net>

> I am stuck. But I figured this would be a good quiz item and maybe
> someone can un stick my brain.
> 
> I need to change this: 02051106 (4 2-digit numbers from 1 to 12)
> to this 2,5,11,6
> 
> Need to drop the leading zeros and insert commas. The field may have
> only one 2 digit number up to 4 two digit numbers.
> 
> So it might be: 01 => 1
> 0103 = 1,3
> 
> I have been doing frantic programming and I just have a block on this
> one.

Ah, community programming.

Lessee... I would do this in pieces; write an edit that matches 2 digits
and deletes the zeropad, and then stack up 4 of those with "accept or supply 
comma" in between.

Cheers,
-- jra
-- 
Jay R. Ashworth                  Baylink                       jra at baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates     http://baylink.pitas.com         2000 Land Rover DII
St Petersburg FL USA      http://photo.imageinc.us             +1 727 647 1274


More information about the Filepro-list mailing list