Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Create MRU menu
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01356008
Message ID:
01356450
Vues:
20
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 && 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
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform