Home All Groups Group Topic Archive Search About


Author
15 Mar 2005 8:51 PM
HartSA
I don't even know where to start with this.  I am new to ASP.  I have this
string

SRSW1023;2UA4;HP;786B2;cv492;

I would like to see four separate strings
CN = SRSW1023
SN = 2UA4
Model = HP
BIOS = 786B2
User = cv492

Lengths will vary on each record, but " ; " is the common delimiter

Author
15 Mar 2005 9:03 PM
Steven Burn
TheString = "SRSW1023;2UA4;HP;786B2;cv492;"
sTemp = Split(TheString, ";")
For x = LBound(sTemp) To UBound(sTemp)
    Response.Write sTemp & "<br>"
Next

or to be more precise

TheString = "SRSW1023;2UA4;HP;786B2;cv492;"
sTemp = Split(TheString, ";")
CN = sTemp(0)
SN = sTemp(1)
Model = sTemp(2)
BIOS = sTemp(3)
User = sTemp(4)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Show quote
"HartSA" <Har***@yahoo.com> wrote in message news:eBP9FDaKFHA.3928@TK2MSFTNGP09.phx.gbl...
> I don't even know where to start with this.  I am new to ASP.  I have this
> string
>
> SRSW1023;2UA4;HP;786B2;cv492;
>
> I would like to see four separate strings
> CN = SRSW1023
> SN = 2UA4
> Model = HP
> BIOS = 786B2
> User = cv492
>
> Lengths will vary on each record, but " ; " is the common delimiter
>
>

AddThis Social Bookmark Button