BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Passing NULL as a parameter

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Robert
Guest





PostPosted: Mon May 14, 2007 8:11 am    Post subject: Passing NULL as a parameter Reply with quote



How do I pass Null as a parameter?

ie.

PARAMBYNAME('MYINT').ASINTEGER = 1;
PARAMBYNAME('MYDESC').VALUE = NULL;

EXECUTE PROCEDURE MYPROC :MYINT, :MYDESC

This won't work.

What will?

Kind Regards,

Robert.
Back to top
Dmitry Arefiev
Guest





PostPosted: Mon May 14, 2007 8:11 am    Post subject: Re: Passing NULL as a parameter Reply with quote



Hello

To be more precise:

Quote:
.Clear;
.Bound := True;
DataType := ftString; // or what else type the parameter should have


Regards,
Dmitry

--
Dmitry Arefiev - www.da-soft.com
AnyDAC - Oracle, MySQL, MSSQL, MSAccess, IBM DB2, Sybase
ASA, DbExpress, ODBC freeware data access engine
ThinDAC - multitier data access engine
Back to top
Martijn Tonies
Guest





PostPosted: Mon May 14, 2007 8:11 am    Post subject: Re: Passing NULL as a parameter Reply with quote



Quote:
How do I pass Null as a parameter?

ie.

PARAMBYNAME('MYINT').ASINTEGER = 1;
PARAMBYNAME('MYDESC').VALUE = NULL;

..Clear;
..Bound := True;

Quote:
EXECUTE PROCEDURE MYPROC :MYINT, :MYDESC

This won't work.

What will?


--
Martijn Tonies
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.