On Tuesday 12 November 2013 20:27:24 Patrick Goupell wrote:
> On 11/12/2013 02:16 PM, Martin Schreiber wrote:
> > "
> > procedure tmainfo.creexe(const sender: TObject);
> > var
> >   dat1: tdatetime;
> > begin
> >   dat1:= tsqlresult1.params.parambyname('abc').asdate;
> >   dat1:= tmsesqlquery1.params.parambyname('abc').asdate;
> >   dat1:= tsqlresult1.params.parambyname('abc').asdatetime;
> >   dat1:= tmsesqlquery1.params.parambyname('abc').asdatetime;
> > end;
> > "
> > compiles for me.
>
> I meant this:
>
> var
> mydate : tdate;
>
> mydate := someqry.fieldbyname ('somedate').asdate;
>
The question is TParam has AsDate, why has TField AsDateTime only?
Both are FPC classes, I assume it is because of Delphi compatibility. I'll add 
asdate and astime to the MSEgui version of TField.

Martin

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to