Welcome to Dream.In.Code
Become a VB Expert!

Join 149,565 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,637 people online right now. Registration is fast and FREE... Join Now!




how can i convert one full string to its ascii and vice cersa

 
Reply to this topicStart new topic

how can i convert one full string to its ascii and vice cersa

dpksngl
29 Nov, 2007 - 07:01 AM
Post #1

New D.I.C Head
*

Joined: 29 Nov, 2007
Posts: 5


My Contributions
how can i convert one full string to its ascii value(say string is "deepak")

m talking abt converting the whole string in one go !!!!

Is it possible??????????


if yes
then from that acsii value back to corresponding string.......

This post has been edited by dpksngl: 29 Nov, 2007 - 07:04 AM
User is offlineProfile CardPM
+Quote Post

Louisda16th
RE: How Can I Convert One Full String To Its Ascii And Vice Cersa
29 Nov, 2007 - 07:05 AM
Post #2

 101010101
Group Icon

Joined: 3 Aug, 2006
Posts: 1,812



Thanked: 1 times
Dream Kudos: 755
My Contributions
Sorry, just giving code is against rules.
Use the Mid Function to extract each character. Now use the Asc function to find the character's ASCII value.
Hope this helps smile.gif.
User is offlineProfile CardPM
+Quote Post

dpksngl
RE: How Can I Convert One Full String To Its Ascii And Vice Cersa
29 Nov, 2007 - 07:10 AM
Post #3

New D.I.C Head
*

Joined: 29 Nov, 2007
Posts: 5


My Contributions
QUOTE(Louisda16th @ 29 Nov, 2007 - 08:05 AM) *

Sorry, just giving code is against rules.
Use the Mid Function to extract each character. Now use the Asc function to find the character's ASCII value.
Hope this helps smile.gif.

thnks for reply no need of ocde i ll manage to code it.... i am doing the same way......i hav converted it into ascii ...now in my apll i want this ascii value to convert back to string how can i do thay....
User is offlineProfile CardPM
+Quote Post

Louisda16th
RE: How Can I Convert One Full String To Its Ascii And Vice Cersa
29 Nov, 2007 - 09:16 AM
Post #4

 101010101
Group Icon

Joined: 3 Aug, 2006
Posts: 1,812



Thanked: 1 times
Dream Kudos: 755
My Contributions
Use the Chr function. It convets the ASCII code to the equivalent character. Concatenate all the characters to get your string.
Are you working on some sort of encryption?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 10:15PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month