Click here to Skip to main content
       

Visual Basic

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: Reading Complex Type from WSDLmemberZac Greve17 Nov '12 - 16:56 
GeneralRe: Reading Complex Type from WSDLmemberasv17 Nov '12 - 18:35 
QuestionSQL functions in VBmemberNaseerKhanPattan17 Nov '12 - 6:28 
AnswerRe: SQL functions in VBmemberEddy Vluggen17 Nov '12 - 9:36 
QuestionFinding a Row in a Datatable and putting the row to variablesmemberJRHibner14 Nov '12 - 18:37 
AnswerRe: Finding a Row in a Datatable and putting the row to variablesmemberAndy_L_J15 Nov '12 - 19:48 
GeneralRe: Finding a Row in a Datatable and putting the row to variables [modified]memberJRHibner18 Nov '12 - 16:15 
Thank you for your help.
 
I tried your sample code but I still get and error, I've also tried tweaking is a few ways and I still get the following errors:
 
"Conversion from string "Name" to type 'Integer' is not valid."
"Value of type 'System.Data.Datarow' Cannot be converted to 'String'"
"Conversion from string "Name" to type 'Integer' is not valid"
 
Here is how I'm building my search string:
 
sStringTemp = CBPlazim.SelectedValue.ToString()
sStringTemp2 = "Name = '" + sStringTemp + "'"
 
CBPlazim is a Combobox that is displays the 'Name' column from the table I'm trying to 'pull' the row from.
 
It's pulling the right row in the second table. Like I mentioned above, I set a watch on the two string variables and when I have it stop before attempting to put the row somewhere, it's the right row.
 
Am I just going about finding the row I want in the second table wrong?
 
I've confirmed that the Column 'Name' in the table is a string variable
 
Do you know if when I'm using the search code, does it move the active record to the row I'm looking for?

modified 18 Nov '12 - 22:41.

AnswerRe: Finding a Row in a Datatable and putting the row to variablesmemberAndy_L_J18 Nov '12 - 20:45 
GeneralRe: Finding a Row in a Datatable and putting the row to variablesmemberJRHibner18 Nov '12 - 20:55 
GeneralRe: Finding a Row in a Datatable and putting the row to variablesmemberAndy_L_J18 Nov '12 - 21:33 
GeneralRe: Finding a Row in a Datatable and putting the row to variablesmemberJRHibner18 Nov '12 - 21:36 
GeneralRe: Finding a Row in a Datatable and putting the row to variablesmemberJRHibner27 Nov '12 - 19:28 
AnswerRe: Finding a Row in a Datatable and putting the row to variablesmemberAndy_L_J27 Nov '12 - 20:56 
GeneralRe: Finding a Row in a Datatable and putting the row to variablesmemberJRHibner27 Nov '12 - 23:40 
GeneralRe: Finding a Row in a Datatable and putting the row to variablesmemberAndy_L_J28 Nov '12 - 0:20 
GeneralRe: Finding a Row in a Datatable and putting the row to variablesmemberJRHibner28 Nov '12 - 10:35 
QuestionChanging Assembly Properties through ReflectionmemberDisIsHoody14 Nov '12 - 9:38 
AnswerRe: Changing Assembly Properties through ReflectionmemberEddy Vluggen15 Nov '12 - 1:18 
GeneralRe: Changing Assembly Properties through ReflectionmemberDisIsHoody15 Nov '12 - 17:14 
GeneralRe: Changing Assembly Properties through ReflectionmemberEddy Vluggen16 Nov '12 - 0:06 
QuestionmessagebeepmemberGil Goodridge14 Nov '12 - 8:00 
AnswerRe: messagebeepmvpDave Kreskowiak14 Nov '12 - 8:31 
QuestionRijndael encryption not workingmembermaskrtnik0114 Nov '12 - 2:20 
AnswerRe: Rijndael encryption not workingmentorKeith Barrow14 Nov '12 - 2:52 
GeneralRe: Rijndael encryption not workingmembermaskrtnik0114 Nov '12 - 3:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 21 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid