Home All Groups Group Topic Archive Search About

Needs help in string handling

Author
28 Feb 2007 8:12 PM
Anna
Hi: This is the original string.
strbuffer=2007022713495176690010323181
MTMASSTS03A20060913                              OMSS          HCS1

Can any one please tell me how to i change the above string

1.For Bankruptcyfilingdate           then MTMASSTS03A20060913 will be
MT+LNNSDT+CCYYMMDD
2.For BankruptcyCaseNumberValue      then MTMASSTS03A20060913 will be
MT+LNNLCN+Case#
3.For BankruptcyChapterNumberValue   then MTMASSTS03A20060913 will be
MT+MASBKC+Chapter#


REQUIRED OUTPUT
For Bankruptcyfilingdate, the original string has a date after
MTMASSTS03A but it will be change after MT like that
1.strbuffer1=2007022713495176690010323181
MTLNNSDT20060913                              OMSS          HCS1

For BankruptcyCaseNumberValue="0627303JDL"
2.strbuffer2=2007022713495176690010323181
MTLNNLCN0627303JDL                              OMSS          HCS1

For BankruptcyChapterNumberValue="7"
3.strbuffer3=2007022713495176690010323181
MTMASBKC7                              OMSS          HCS1

I mean after MT the values are change in the string strbuffer
according to the new values. I need help without using query


Thanks,

Anna.

Author
28 Feb 2007 9:14 PM
Jeff Johnson
"Anna" <colleen1***@gmail.com> wrote in message
news:1172693559.971607.158790@m58g2000cwm.googlegroups.com...

> Can any one please tell me how to i change the above string

To modify strings, look into the InStr() function and the Mid statement in
help (MSDN).
Author
28 Feb 2007 9:20 PM
Saga
Mid **statement**  as opposed to "function"

Saga
--



Show quoteHide quote
"Jeff Johnson" <i.get@enough.spam> wrote in message news:%23vdFt13WHHA.4764@TK2MSFTNGP05.phx.gbl...
> "Anna" <colleen1***@gmail.com> wrote in message
> news:1172693559.971607.158790@m58g2000cwm.googlegroups.com...
>
>> Can any one please tell me how to i change the above string
>
> To modify strings, look into the InStr() function and the Mid statement in help (MSDN).
>