I wouldn't know what is the best place to put the code in your application.
>i've read the document but i didnt realy good understand it so ;
>
>uprefs.dbf structure is i think
>prompt c(25) , action c(100) , timestamp T
>
>here is my questions
>
>1-which place is best for using below codes tracks that actions ?
>
>
> SELECT Uprefs
> LOCATE FOR prompt = cFormName
> IF FOUND()
> REPLACE Timestamp WITH DATETIME()
> ELSE
> IF RECCOUNT() < nMaxItems
> INSERT INTO Uprefs VALUES(cFormName, cAction, DATETIME())
> ELSE
> SET ORDER TO Timestamp ASCENDING
> GO TOP
> REPLACE prompt WITH cFormName
> REPLACE Action WITH cAction
> REPLACE Timestamp WITH DATETIME()
> ENDIF
> ENDIF
>
>
>
>2- should i embed above code to the my mainmenu.mpr ?
>
Every time you update the preferences table, you need to rerun the File menu program:
>DO FILE.MPR >
>3- *Adding Most Recently Used Documents to the File Menu
>
Add the following code in the Cleanup editing window.>
>which cleanup editing window ?
>
>Thanks
--sb--