Re: Cannot format date in R4GL
Posted in 1994
John Sinues writes: -> ->Simple question....why isn't the date not formatted in my report? I've modified the example below to fix your problem. A variable stores a value, not a format. You can print or display a value with the using clause in order to format that value. ->Here is an excerpt of the code. -> -> FORMAT -> PAGE HEADER LET p_date = DATE -> LET p_time = TIME -> -> PRINT ASCII 27, "&a003C", "Date: ", p_date using "mm/dd/yy", ^^^^^^^^^^^^^^^^ Regards, - Cathy -------------------------------------------------------------------------------- Cathy Kipp e-mail: ckipp@vth1.vth.colostate.edu Phone: (303) 491-1294 Colorado State University Veterinary Teaching Hospital Fax: (303) 491-1205 Coming in September, from Prentice Hall, my new book: Programming INFORMIX SQL/4GL: A Step-by-Step Approach (ISBN: 0-13-149394-9)