You could use this version, it's a little more elegant than Bruce's,
his is a bit old school, (he's starting to show his age methinks).
string Datestr(A8).
comp Datestr=Replace(String(date,SDATE10),"/","").
exe.
Fred
> > Hello,
>
[quoted text clipped - 20 lines]
> bwea...@lakeheadu.cahttp://sites.google.com/a/lakeheadu.ca/bweaver/
> "When all else fails, RTFM."
Asil - 22 Oct 2008 14:20 GMT
Thanks Fred,
I could not get it to work, no value came out in the new variable. Any
ideas? I am using v13.
Asil
Syntax:
string dob3(A8).
comp dob3=Replace(String(dob,SDATE10),"/""").
exe.
Data
dob
01/28/1975
01/21/1986
11/30/1983
On Oct 22, 9:08 am, fred.sut...@lsc.gov.uk wrote:
> You could use this version, it's a little more elegant than Bruce's,
> his is a bit old school, (he's starting to show his age methinks).
[quoted text clipped - 31 lines]
>
> - Show quoted text -
Bruce Weaver - 22 Oct 2008 14:55 GMT
> Thanks Fred,
>
> I could not get it to work, no value came out in the new variable. Any
> ideas? I am using v13.
>
> Asil
Look for REPLACE in the help file. I bet it wasn't there yet in v13.
Sometimes it pays to be old-school. ;-)
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/
"When all else fails, RTFM."
fred.sutton@lsc.gov.uk - 24 Oct 2008 07:59 GMT
That's it Bruce, you're right again, I'm going back to the abacus, you
knew where you were with them!
Fred
> > Thanks Fred,
>
[quoted text clipped - 10 lines]
> bwea...@lakeheadu.cahttp://sites.google.com/a/lakeheadu.ca/bweaver/
> "When all else fails, RTFM."
Thanks Bruce,
It worked perfectly fine.
Asil
> > Hello,
>
[quoted text clipped - 20 lines]
> bwea...@lakeheadu.cahttp://sites.google.com/a/lakeheadu.ca/bweaver/
> "When all else fails, RTFM."