Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Jul 2004
    In front of my computer, Monmorency, Quebec city, Quebec, Canada, North America, Planet Earth, Sol System, Milky Way, Known Universe
    Thanked 0 Times in 0 Posts

    Question array and fromCharCode problem [solved]...

    I'm translating something I've already written in visual basic and vbscript to javascript, but this bit of code gives me an error...

    for(i=0; i<=5; i++){
       for(j=0; j<=5; j++){
          strdecrypt[i,j]=intdecrypt[(6 * i) + j].fromCharCode();
    if the .fromCharCode() is commented, it don't return an error, but I need it or something that would do the exact same thing

    here are the arrays declarations (i've kept the vb naming convention)
    	var intdecrypt = new Array(35);
    	var strdecrypt = new Array(5,5);
    intdecrypt have the charcodes and they must be sent as characters to strdecrypt

    thanks for your help

    strdecrypt[i,j]=String.fromCharCode(intdecrypt[(6 * i) + j]);
    i had some real bad syntax... the last bit of code is the solution...
    Last edited by MogVonKupo; 04-17-2005 at 10:40 PM.
    There's no getting offa the train we're on. (Barrett)
    Ca va mal (Bruno Blanchet)
    I love having low self-esteem, it makes me feel special. (Jane Lane)
    What did you just said? (Mimiru)
    There's 10 kind of people, those who9 understand binary and those who don't (somewhere on the net)


Posting Permissions

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