Help Needed Using Ord Function
Hello All!
I am using version 10.03 and I want to copy a function from a Delphi program
and place it in my report.
The function looks like the following:
function FindEncryptMethodology(const inString : string) : integer;
var
TempChar : Char;
begin
// Discover encyption methodology - last character
TempChar := inString[POSITION_METHOD_CHAR];
result := Ord(TempChar);
end;
When I do a straight copy and paste from the Delphi program to the report, I
get an error on the first line.
The error is: Error: FindEncryptMethodology, Line 7: Expected: 'not' or
'or', but found '[' instead.
Based on that error, I rewrote line 7 from TempChar :=
inString[POSITION_METHOD_CHAR] to
TempChar := Copy(inString, 0, 1); That took care of the first problem.
Now, I am getting the following error on line 8:
Error: FindEncryptMethodology, Line 8: Undeclared identifier: 'Ord';
So, I have two questions. First, can I not use the Ord function in my
report? Second, if so or if not, what
are my options at this point?
Thank you in advance for any and all replies.
Everett
I am using version 10.03 and I want to copy a function from a Delphi program
and place it in my report.
The function looks like the following:
function FindEncryptMethodology(const inString : string) : integer;
var
TempChar : Char;
begin
// Discover encyption methodology - last character
TempChar := inString[POSITION_METHOD_CHAR];
result := Ord(TempChar);
end;
When I do a straight copy and paste from the Delphi program to the report, I
get an error on the first line.
The error is: Error: FindEncryptMethodology, Line 7: Expected: 'not' or
'or', but found '[' instead.
Based on that error, I rewrote line 7 from TempChar :=
inString[POSITION_METHOD_CHAR] to
TempChar := Copy(inString, 0, 1); That took care of the first problem.
Now, I am getting the following error on line 8:
Error: FindEncryptMethodology, Line 8: Undeclared identifier: 'Ord';
So, I have two questions. First, can I not use the Ord function in my
report? Second, if so or if not, what
are my options at this point?
Thank you in advance for any and all replies.
Everett
This discussion has been closed.
Comments
The Ord function is not currently supported by RAP. In order to use this
function, you will need to create a RAP pass thru function. There is
complete documentation of how to create a pass thru function in the
ReportBuilder Developer's Guide as well as in the main RAP demo located in
the \RBuilder\Demos\0. RAP\... directory.
We will consider including this function in RAP for a later release of
ReportBuilder. Thanks for your feedback.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thank you so very much for your reply!
I am looking in the Developer's Guide even now. I see the section on
"Adding Functions To RAP".
Hopefully that will get me to where I am trying to go.
Thanks again,
Everett