Solved

Change Characters

Posted on 1997-10-20
2
128 Views
Last Modified: 2010-04-04
I'm making an program to hold all my passwords.
Example: I have an word WATCH and I want to change every letter seperated. So letter CHR(W) gives an number + 10 gives another ASCII code how do I get the number back in to an ASCII character. And I need to get the next letters ATCH.
0
Comment
Question by:CyberChild
2 Comments
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 10 total points
ID: 1348345
Use the Ord & Chr functions.
Example:
Chr(65) -->  'A'
Ord('A') --> 65

Thus:
for i := 1 to Length(MyString) do
    MyString[i] := Chr(Ord(MyString[i]) + 10);

JB
0
 

Author Comment

by:CyberChild
ID: 1348346
It looks easy if you see the code.

Thanks,
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 94
delphi custom sort exception 6 131
Working this component WebCopy with proxy, help 3 76
Magic Software info 18 124
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now