Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DBNull, Error 13
Message
 
À
13/01/2003 12:42:52
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00741053
Message ID:
00741084
Vues:
24
Thanks Bonnie,
I had to use "Is DBNull", because it's geving me an error on "!="



>Ahmad,
>
>You need to test for a NULL value:
>
>if myDS.Tables("Company").Rows(iRow).Item("Note") != DBNull.Value then
>  pbstrNotes = myDS.Tables("Company").Rows(iRow).Item("Note")
>
>
>~~Bonnie
>
>>Dear All,
>>I am trying to get a value from my DataSet and store it to the memvar as follow:
>>
>>Dim pbstrNotes As String
>>pbstrNotes = myDS.Tables("Company").Rows(iRow).Item("Note")
>>
>>If the file empty the system reases an error # 13
>>("DBNull" to type 'String' is not valid)
>>
>>Any idea how to sove this pls.
>>
>>Thanks for the help
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform