Ask Tamar Granor for her white paper on the topic.
>>Check
http://www.dfpug.de/loseblattsammlung/migration/whitepapers/menus.htm>>
>>>i want to create a MRU ( most recently use like Windows XP - start Menu - documents etc.) menu or list in my app but I've no good idea now how to do this ?
>
>Hi again Sergey,
>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
If it's not broken, fix it until it is.
My Blog