Hello!

Date fields have always been a puzzle to me.  Basically they are float
type fields but Delphi doesn't handle them that way when it comes to
comparisons with constants.

I am doing a report where I look at a date field.  If the field has a
date then I show 'Yes' in the report line otherwise I show a 'No'.
Since it is a numeric field, I thought I would just do a compare with
zero, like this:

If NXQuery1.Fieldbyname('ActShipDate').Value > 0.0 then S := '  Yes   '
                                                    else S := '   No
';

When I exccute this line I get a runtime error 'invalid type
conversion'.  What can I do to overcome this problem?

Thanks in advance!

Tom Nesler
Live long!...   Code Well!...   and Prosper!...   V


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to