Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Another function parameters question
Sun, May 27 2007 9:53 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

What about defaults eg

function TEXTSEARCH(const SearchWords, SearchText: string; CaseSensitive: boolean): boolean;

What I'm starting to do is

if AnsiCompareText(RoutineName, 'TEXTSEARCH') = 0 then Result := TEXTSEARCH(Params[0], Params[1], Params[2]);

and I suddenly thought 90%+ of the time I'm going to want case insensitive so in the SQL can I type

TEXTSEARCH('search for this',textfield)  and have

function TEXTSEARCH(const SearchWords, SearchText: string; CaseSensitive: boolean = True): boolean;

I'm guessing the answer is NO. If I don't get an answer by the time I've written my function I might have a go and see what I can blow up Smiley

Roy Lambert
Tue, May 29 2007 3:07 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< What about defaults eg >>

No, you can't define defaults for parameters at this time in EDB, only
variables.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image