|
-
Jul 15th, 2004, 06:13 PM
#1
Thread Starter
Lively Member
table.rows(1)(1)=nothing???
How do i make my program know if a certain entry in a table doesnt exists, aka null, aka nothing?? I tried doing
Code:
If table.rows(1)(1).contains("") Then
Do it
End If
and i also tried
Code:
If table.rows(1)(1).contains(nothing) Then
do it
end if
Both times i got the same error "Public member on "Contains" on type double not found"....
I imported an excel database, into the table, so i don't know what it thinks it is, or what the data type is... SO any information about this, or any suggestions would help!
It is like wiping your ass with silk, I love it!
-
Jul 15th, 2004, 09:00 PM
#2
Addicted Member
Try this:
Code:
If IsDBNull(table.rows(1)(1)) Then
Do it
End If
Not sure about the whole "table.rows(1)(1)" but the IsDBNull part is correct.
-
Jul 17th, 2004, 10:45 PM
#3
Frenzied Member
i've not seen that syntax either. how is it read?
-
Jul 18th, 2004, 11:37 AM
#4
Lively Member
YOu alwaus should use column name for rows in a DataTable, because you may need in some point to move into SQLDB/XML data storing, where while writing code for creating columns changing the order columns are putten into the table may deffer from method to method, which makes using index for column identication is irreliable.
Also using column name makes your code more readable and organized
Do you think my life is easy?
Do you think it's good to win?
do you think it's nice to kill?
Do you think learning is a must?
Do you think computers are nothing?
Do you think this post is stupid?
Do ypu think we're really humen?
DO YOU THINK IT'S GOOD TO THINK AT ALL? ? ? ! ! !
-
Jul 18th, 2004, 04:03 PM
#5
Junior Member
Originally posted by Andy
i've not seen that syntax either. how is it read?
is just a faster way for writing
Code:
table.rows(1).items(1)
-
Jul 18th, 2004, 04:12 PM
#6
Junior Member
Originally posted by Andy
i've not seen that syntax either. how is it read?
is just a faster way for writing
Code:
table.rows(1).items(1)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|