ive create a dataset for my application to reference on it needs to in the standard fashon of
And populated the rows and colums as suchCode:Dim Symbol As DataColumn = New DataColumn("Symbol") Symbol.DataType = System.Type.GetType("System.String") In_Stack_Priority.Columns.Add(Symbol) Dim InStackPriority As DataColumn = New DataColumn("In-StackPriority") Symbol.DataType = System.Type.GetType("System.String") In_Stack_Priority.Columns.Add(InStackPriority)
Now my question is about getting data back from the data set. I want to be able to mach a symbol (entered by a user) to a symbol in my data set - and then only return the "In-StackPriority" number. NOT the whole a rowCode:Row1 = In_Stack_Priority.NewRow() Row1("Symbol") = ")" Row1("In-StackPriority") = "-" In_Stack_Priority.Rows.Add(Row1) Row2 = In_Stack_Priority.NewRow() Row2("Symbol") = "**" Row2("In-StackPriority") = "3" In_Stack_Priority.Rows.Add(Row2) Row3 = In_Stack_Priority.NewRow() Row3("Symbol") = "*" Row3("In-StackPriority") = "2" In_Stack_Priority.Rows.Add(Row3)
Any ideas?




Reply With Quote