simple tapi bingung (TDatetime)

Pemrograman Delphi

simple tapi bingung (TDatetime)

Postby pascal » 08 Aug 2011, 19:41

Bagaimana cara set nilai null utk tdatetime?
Bagaimana cara kondisi mengecek tdatetime itu null?

Thanks
User avatar
pascal
Member
 
Posts: 152
Joined: 16 May 2010, 23:25

RE: simple tapi bingung (TDatetime)

Postby leledumbo » 09 Aug 2011, 05:20

TDateTime itu alias buat Double kok, 0 kan sadja. Tapi kalo assignment := 0 takutnya ada masalah floating point, jadi coba cara yang lebih mumpuni:
Code: Select all
  1. FillByte(TDateTimeVariable,sizeof(TDateTime),0);

leledumbo
Senior Member
 
Posts: 262
Joined: 24 May 2010, 15:58


Who is online

Users browsing this forum: No registered users and 1 guest

cron