Dans : news:%(E-Mail Removed),
Mr. Arnold écrivait :
> "Fred" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Dans : news:(E-Mail Removed),
>> Mr. Arnold écrivait :
>>> "Arne Vajhøj" <(E-Mail Removed)> wrote in message
>>> news:48659a67$0$90274$(E-Mail Removed)...
>>>> Nathan Sokalski wrote:
>>>>> VB.NET has a function, Asc(), that gets the Ascii value of a
>>>>> character. I am attempting to find an equivelant function for C#.
>>>>> Can somebody help me here?
>>>>
>>>> (int)c
>>>>
>>>> Arne
>>>>
>>>> PS: I believe Asc is a VB6'ism.
>>>
>>> Asc() can still be used VB.Net. It was in VB3-VB6 and QuickBasic
>>> too.
>>
>> But it's not equivalent to Arne's solution as it returns windows
>> default encoding character code (not Unicode value)
>>
>
> What does that have to do with anything? It's not a VB6'ism is all
> that was being pointed out here and nothing else.
I probably misunderstood as english is not my native language. I just
wanted Nathan to know he can get some different results with (int)c that
he used to get with Asc.
I am sorry to disturb.
--
Fred
(E-Mail Removed)