Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Create MRU menu
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356008
Message ID:
01356229
Views:
24
>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 && maximum number of items to display
   INSERT INTO Uprefs VALUES(cFormName, cAction, DATETIME())
  ELSE
    SET ORDER TO Timestamp ASCENDING && oldest at top
    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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform