[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

function WideBytesOf for delphi 7

Posted on 2011-03-04
2
Medium Priority
?
858 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 500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month20 days, 9 hours left to enroll

868 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