Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to test if a character is null
Message
De
09/01/2005 18:58:38
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00975519
Message ID:
00975554
Vues:
13
No problem, Gerard. I'm glad to help.

~~Bonnie

>Thanks for that Bonnie,
>regards,
>Gerard
>
>>Gerard,
>>
>>Char 0 (zero) is null, so test like this:
>>
>>  If (Mychar = (char)0)
>>    { return true}
>>  else
>>   { return false}
>>
>>
>>~~Bonnie
>>
>>
>>>Hi.
>>>How do I test if a character is null ?
>>>
>>>Pseudo code ? that does'nt work because MyChar is type Char and NUll is an object ?
>>>{
>>> If (Mychar = null)
>>> { return true}
>>> else
>>> { return false}
>>>}
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform