Re: A new twist on the last problem (D3/NT)



John - for what it's worth -

F;0;(L0);"1";-;0;_;"1";_;[];(MCA)

Get rid of the last character and then save what alphas are left.

Tom

<johnmarshall@xxxxxxxxxx> wrote in message
news:1156842013.952867.77050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Folks
my posting a few weeks back revolved around getting the front numeric
characters of a stream of record IDs like the following:

R123
R12345
RC12
RC123
RC12345
S12
SV123456
SVX679101
SVX123

and the solution kindly proposed by a helpful poster was a synonym like
the one below called TYPE

001 S
002 0
003 TYPE
004
005
006
007
008 MCA
009 L
010 6

This synonym gave me all the alphas in the record ID so for the above
data I got 1 to 3 alpha characters, which was great as it allowed me to
seperate the data for reporting purposes, as the leading alphas
indicated the type of job (Production, repair, R&D, marketing etc etc)

All was going well until today, when horrors, I noticed that some users
had also been raising job numbers in the form R123A RC1234C SZY45T
etc, so that my TYPE synonym stopped working the way I wanted as it
now returned results like RA, RCC, SZYT for the data whereas I just
wanted just the first alpha part before the numeric, ie R, RC, SZY.

Is their any simple tweak that I can do to my synonym to get just those
pesky leading alpha characters? Note that the number of leading alphas
and the following numerics can vary, but the end alpha (after the
numeric) if present at all, is only ever 1 character.

As usual, any suggestions appreciated.

John Marshall
Christchurch NZ



.



Relevant Pages

  • Re: A new twist on the last problem (D3/NT)
    ... "Note that the number of leading alphas ... and the following numerics can vary, but the end alpha (after the ... leading alphas plus numbers are at least 4 characters. ... This synonym gave me all the alphas in the record ID so for the above ...
    (comp.databases.pick)
  • Re: A new twist on the last problem (D3/NT)
    ... If your leading alphas have a known max length you might be able to get away ... leading alphas plus numbers are at least 4 characters. ... This synonym gave me all the alphas in the record ID so for the above ... and the following numerics can vary, but the end alpha (after the ...
    (comp.databases.pick)
  • Text in cell except last 3 characters
    ... I have a spreadsheet with text in cells in one column, ... from 8 to 20 characters, and they are a mixture of numbers and alphas. ...
    (microsoft.public.excel)
  • Re: Struts - validating foreign characters
    ... characters. ... individual characters in the mask i.e. ... This will allow for alphas and è. ...
    (comp.lang.java.programmer)
  • Re: A new twist on the last problem (D3/NT)
    ... This synonym gave me all the alphas in the record ID so for the above ... data I got 1 to 3 alpha characters, which was great as it allowed me to ... wanted just the first alpha part before the numeric, ie R, RC, SZY. ... and the following numerics can vary, but the end alpha (after the ...
    (comp.databases.pick)