[futurebasic] Re: [FB] Last Date Modified

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: AlStaff@...
Date: Mon, 3 May 1999 09:18:53 EDT
<<<<I have an Edit Field in the bottom margin of my Graphics Catalog that I 
"Post" its date of Origin .. 
At present .. It reads a Date that I have to manually enter in the STR# 
Resource
I would LIKE to have it enter that Date automatically .. I see 2 ways to 
do this
1. Each time it is opened  .. Make it "Read" the Date Of its Last 
Modification and insert that date into my Edit Field>>>>


Should be pretty easy if you use DATE$.
DATE$ returns the current date as dd/mm/yy
Example:
  theDate$ = DATE$
  PRINT theDate$
Output would be: "05/03/99"

So I guess you'd be looking at something like this:
1. File is opened.
2. Read STR resource containing last date used.
3. Show last date in Edit Field
4. Get current date with DATE$ (theDate$ = DATE$)
5. Save theDate$ as STR resource to be used next time file is opened.


Al Staffieri Jr.

AlStaff@...
http://members.aol.com/AlStaff/index.html