Results 1 to 3 of 3

Thread: int to string

  1. #1

    Thread Starter
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919

    int to string

    im storing values in the registry by number, and i can loop through off the entries calling them by number. but for the loop since its an integer, how do i convert it to a string?

    Code:
    for(int i=1;i<=num;i++){
    		tmp = i;
    		registry.Read(tmp,title);
    		lst_favs.AddString(title);
    	}
    thanks
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    You mean string from <string> or a simple char array?
    If it's an array of characters, you can use itoa().
    PHP Code:
    char buffer[20];
    itoa(mynumberbuffer,10); 
    Baaaaaaaaah

  3. #3

    Thread Starter
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    ok ill try that, thanks.

    i think itll accept a char array
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

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