Clone dataset schema

Category : ADO / SQL, VB.Net

dim newDataset as dataset

newDataset = oldDataset.clone()

NUGGET – Split method for splitting strings

Category : VB.Net

Got a list of data in string form divided by commas? (or anything for that matter)… use the SPLIT command in VB.Net like this.

** strSchools = “100, 101, 104, 105″

'Split the above string at the commas.
Dim entities() as String  = Split(strSchools, ",")
 
'Now you have an array of your entities... you could iterate them like this!
For Each entity As String In entities
       'Do whatever you want in here with your single entity!
Next