Results 1 to 10 of 10

Thread: What's wrong

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Location
    Newcastle
    Posts
    13

    What's wrong

    i have this code to make a simple encryption in vb.2008
    it should take a letter and change it/swap it for another for example "A"="B"
    and so on and so forth,
    i have a basic understanding of vb but not much and i have a vague idea of what i need to do but the code just doesnt seem to work and everything i try just doesnt work, i have used the "Replace" and "insert" methods
    but they are not what i am looking for

    Dim X(3) As Char

    For i = 0 To 3
    X(i) = ChrW(100)

    Next i
    Console.WriteLine(X[0]&X[1]&X[2]&X[3])

    End Function

    End Class

    The X would be 25 because of the alphabet 
    Hope you can help

    Rich.vb
    Last edited by richardMorris.vb; Feb 7th, 2012 at 09:30 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width