![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 7 of 7 total |
![]() |
Mon, Oct 20 2008 2:49 AM | Permanent Link |
Roy Lambert NLH Associates ![]() | I'm developing an external function in Delphi. In EDBManager I can set a parameter to be of type BLOB which is what I want. What do I use for the parameter of the external Delphi function?
Roy Lambert |
Mon, Oct 20 2008 3:12 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Roy,
<< I'm developing an external function in Delphi. In EDBManager I can set a parameter to be of type BLOB which is what I want. What do I use for the parameter of the external Delphi function? >> Do you mean when you retrieve the value via the TParam.As* properties ? If so, then you would use the AsBlob property in the external function. -- Tim Young Elevate Software www.elevatesoft.com |
Tue, Oct 21 2008 4:30 AM | Permanent Link |
Roy Lambert NLH Associates ![]() | Tim
>Do you mean when you retrieve the value via the TParam.As* properties ? If >so, then you would use the AsBlob property in the external function. That and the actual function itself From what you said I'd have procedure TEDBExternalModule1.EDBExternalModuleRoutine(const RoutineName: string); var ckn: string; begin ckn := LowerCase(RoutineName); .... .... else if ckn = 'cvsearch' then CVSearch(Params.FindParam('docType').AsString, Params.FindParam('FldStr').AsBlob, Params.FindParam('TstStr').AsString, Params.FindParam('CompStr').AsString, Params.FindParam('CI').AsString); end and function CVSearch(const docType:string; FldStr:TBlobField, TstStr, CompStr, CI: string): boolean; Is that right? Roy Lambert |
Tue, Oct 21 2008 8:35 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Roy,
<< function CVSearch(const docType:string; FldStr:TBlobField, TstStr, CompStr, CI: string): boolean; >> Actually, the second parameter should be declared as: FldStr, (without the TBlobField) -- Tim Young Elevate Software www.elevatesoft.com |
Tue, Oct 21 2008 10:08 AM | Permanent Link |
Roy Lambert NLH Associates ![]() | Tim
><< function CVSearch(const docType:string; FldStr:TBlobField, TstStr, >CompStr, CI: string): boolean; >> > >Actually, the second parameter should be declared as: > >FldStr, (without the TBlobField) Errm. I know I forgot to change the comma to a semicolon but are you saying that I use TParam(..).AsBlob and string? If so is that any better than using .AsString and string? Roy Lambert |
Tue, Oct 21 2008 5:54 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Roy,
<< Errm. I know I forgot to change the comma to a semicolon but are you saying that I use TParam(..).AsBlob and string? >> The TParam objects use AnsiStrings for storing BLOB data (not my choice, but that's what they use). There's no problem with doing so - they can include NULLs, etc. << If so is that any better than using .AsString and string? >> There's really no difference, but I would stick with AsBlob as a self-documenting mechanism. -- Tim Young Elevate Software www.elevatesoft.com |
Wed, Oct 22 2008 2:17 AM | Permanent Link |
Roy Lambert NLH Associates ![]() | Tim
Thanks, at least I now have a vague idea what I'm doing. Roy Lambert |
This web page was last updated on Sunday, July 13, 2025 at 06:52 AM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |