Solved

function WideBytesOf for delphi 7

Posted on 2011-03-04
2
830 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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