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:
01356232
Views:
23
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 && 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
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform