bratuha
January 22nd, 2003, 07:05 AM
Hi all,
I'm trying to search a datatable and not sure how to do it. The table has 2 elements with ID set to be a Primary key and URL set to be a normal Key.
I need to search the table with the key value. but when i try the find method just quits/fails without generating any error. could someone tell me what is happening (what type of error is it) and how can i locate the desired URL.
Dim FileName(1) As String
FileName(0) = ""
FileName(0) = strPath(i)
Dim PresentFile As DataRow = ds.Tables("Files").Rows.Find(FileName)
The
<xs:element name="Files">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msdata:Caption="File UID" type="xs:int" />
<xs:element name="URL" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
I'm trying to search a datatable and not sure how to do it. The table has 2 elements with ID set to be a Primary key and URL set to be a normal Key.
I need to search the table with the key value. but when i try the find method just quits/fails without generating any error. could someone tell me what is happening (what type of error is it) and how can i locate the desired URL.
Dim FileName(1) As String
FileName(0) = ""
FileName(0) = strPath(i)
Dim PresentFile As DataRow = ds.Tables("Files").Rows.Find(FileName)
The
<xs:element name="Files">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msdata:Caption="File UID" type="xs:int" />
<xs:element name="URL" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>