Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Convert int to string.
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Justin_




PostPosted: Wed Jan 18, 2006 11:14 am   Post subject: Convert int to string.

Another question. How do I convert an integer variable to a string so that I can concatenate it onto a string and display it as a label.
Sponsor
Sponsor
Sponsor
sponsor
pavol




PostPosted: Wed Jan 18, 2006 11:20 am   Post subject: (No subject)

im not sure but can't you just do something like:
code:
dim a as string
dim b as integer

a = b

as in you just assign the integer value to a string variable. or would that produce an error
just a thought
Justin_




PostPosted: Wed Jan 18, 2006 11:28 am   Post subject: (No subject)

Only in VB...

For some strange reason that worked. Cool, thanks.
abcdefgh09876543212345678




PostPosted: Sun Mar 05, 2006 5:02 pm   Post subject: (No subject)

i thik the proper way is
a=str(b)
but what ever works
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: