Article ID: 130346
Article Last Modified on 8/26/1999
* * Begin Program * * This program assumes a table already exists with a DateTime field named * tField. * BROWSE FIELDS date=getdate(tField), time=gettime(tField) * * The BROWSE command passes tField to the functions getdate() * and gettime(). Each function returns to the BROWSE the values of * justdate and justtime. * FUNCTION getdate PARAMETERS tField justdate = SUBSTR(TTOC(tField),1,8) RETURN justdate ENDFUNC FUNCTION gettime PARAMETERS tField justtime = SUBSTR(TTOC(tField),10) RETURN justtime ENDFUNC * NOTE: The justdate and justtime fields will be read-only at run time. * * End Program *
Additional query words: VFoxWin
Keywords: kbcode KB130346