Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread External modules - functions & procedures
Mon, Dec 17 2007 3:09 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Does anyone have an example of a working External modules -  functions or procedures to supplement the information in the manual?

Roy Lambert
Mon, Dec 17 2007 3:24 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

PS I mean in a dll, not an sql one

Roy Lambert
Mon, Dec 17 2007 4:29 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Playing around I created


function  SpacelessCompare(const StrIn, StrComp:string):boolean;
begin
showmessage(StrIn+' ... '+StrComp);
end;

The problem is it just shows StrIn for the first record in the table, for the number of times there are rows in the table.

I'm passing values to this function usingSpacelessCompare( Params[0].AsString, Params[1].AsString);

help...

Roy Lambert
Mon, Dec 17 2007 6:03 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

I think I have it sused apart from the fact that it doesn't work. What's being passed in as Params.FindParam('Phone').AsString is always record 1

function SpacelessCompare(const StrFld, StrComp: string): boolean;
begin
Result := StringReplace(StrFld, ' ', '', [rfReplaceAll]) = StringReplace(StrComp, ' ', '', [rfReplaceAll]);
end;

procedure TEDBExternalModule1.EDBExternalModuleRoutine(
const RoutineName: string);
begin
if LowerCase(RoutineName) = 'spacelesscompare' then Params.FindParam('Result').AsBoolean := SpacelessCompare(Params.FindParam('Phone').AsString, Params.FindParam('TestAgainst').AsString);
end;

Roy Lambert
Mon, Dec 17 2007 3:48 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< I think I have it sused apart from the fact that it doesn't work. What's
being passed in as Params.FindParam('Phone').AsString is always record 1 >>

See here:

http://www.elevatesoft.com/scripts/newsgrp.dll?action=openmsg&group=16&msg=3469&page=1#msg3469

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Dec 18 2007 3:48 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


Roll on 1.07

Roy Lambert
Image