Re: converting int to char

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Telmo Sampaio (tsampaio_at_gmail.com)
Date: 07/13/04


Date: Tue, 13 Jul 2004 13:44:48 -0500

use the Convert static class.

Dim X as integer = 70
Dim Y as Char = Convert.ToChar(X)

Telmo Sampaio

"Nikhil Patel" <nikhil0100@aol.com> wrote in message
news:enFkLTQaEHA.3708@TK2MSFTNGP10.phx.gbl...
> Hi all,
> How can I convert an integer to its equivalent ascii character without
> using Microsoft.VisualBasic dll or any other dll(I want to reference only
> System.dll).
>
> Thanks.
>
> -Nikhil
>
>



Relevant Pages

  • Re: Ranges and Arrays
    ... Dim char As String ... > the characters into a sheet part. ...
    (microsoft.public.excel.programming)
  • Re: Open File For Binary - Works in XP Pro But Fails in XP Home
    ... Avoid converting jpg bytes to char if you can. ... array with a single write that requries no loops. ... Dim buff() As Byte ...
    (microsoft.public.vb.general.discussion)
  • Re: Help using a C dll function in VB
    ... So in the mydll.c code for initdata2() I have: ... char **data, int size) ... Dim i As Integer ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Translating char variable type from C++
    ... However there's one particular DLL function that is refusing to work ... char parA; ... where parA, B, C etc seem to take simple integer values like 0, 1, 2, ... Dim parA as Byte ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Enhanced Split?
    ... Dim cmdLnArgs As String, ... 'c is char, ca is current_argument ... 'it is a space not in quotes go to the next argument and add the char ...
    (microsoft.public.vb.general.discussion)