Solved

function WideBytesOf for delphi 7

Posted on 2011-03-04
2
836 Views
Last Modified: 2013-11-22
I get a program in Delphi 2010, but I have Delphi 7 and I could not compile because there is a function called "WideBytesOf" and there is no Delphi 7. I need an equivalente function or code

thanks
0
Comment
Question by:Torin66
2 Comments
 
LVL 24

Accepted Solution

by:
jimyX earned 125 total points
ID: 35041790
You can use ord():
function WideBytes(Str:String):String;
var
  i:integer;
begin
  Result := '';
  for i := 1 to Length(Str) do
    Result := Result + IntToStr(ord(Str[i]));
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  showmessage(WideBytes('123'));
end;

Open in new window

Bear in mind Delphi 7 does not support Unicode.
0
 

Author Closing Comment

by:Torin66
ID: 35041807
Thank you very much
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
LAN or WAN ? 11 82
Create a path if not exists 7 69
TEMBEDDEDWB how can i change its user agent ? 8 50
Dev express lookupcombo 3 13
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 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

19 Experts available now in Live!

Get 1:1 Help Now