|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Parse Script
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 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) 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 > > |
|||||||||||||||||||||||