Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need a big help i have a database, ineed a coding to split a item from database

database item
0000300005300113000000000000000000000
0000000000000000555535000105000000000
5533513503503000000000000000000000050

i need to split dbitem to 1 per 1
item 1 = 0
......
item 37 = 0

this code
VB
for i = 0 to dataset.tables(0).rows.count -1
dim str() as string = dataset.tables(0).rows(i).item("dbitem")
next

actually i have input item, iwant inputitem*dbitem
and comparing between rows, to get the greatest amount
Posted
Updated 3-Nov-15 23:11pm
v2
Comments
Garth J Lancaster 3-Nov-15 22:40pm    
I think you need to edit & refine your question a little more - each of those 'lines'/?dbitems has ~37 characters - so, on what basis are you splitting them up ? if that whole thing is one item, then you definately need to indicate more on how its interpreted for split purposes
Roymond Chandra Pradana 4-Nov-15 4:13am    
yes im sorry bad of english and yes, sorry the item 37, how to fixing that.
actually i have a input that same but per item
iwant iteminput X itemdb

and compare between rows, to get the greatest amount
and load that into datagridview

PIEBALDconsult 3-Nov-15 23:15pm    
They should have been split before they were stored. Now it's too late.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900