[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference utrop1::linkworks_v3

Title:LinkWorks V3.0 Notes Conference
Notice:LNX_APO = APO issues, LINKWORKS_V3 = V3.0 issues
Moderator:tacklr.apd.dec.com::TACK_Lm::TACK_L
Created:Tue Jun 28 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2269
Total number of notes:8338

2091.0. "Application called from menu option" by LISALF::SEPULVEDA (The Sunshine People) Fri Jan 24 1997 18:44

    
    	Hi All,
    
    	How is it possible to execute a V.Basic program streight from a
    	pull down menu option ?
    
    	ie: execute something that is not a LNX action.
    
    	How can we do it ?
    
    	Thank you very much for all your help.
    	Best Regards
    	   Ana
T.RTitleUserPersonal
Name
DateLines
2091.1IJSAPL::MONNINK_HFri Jan 24 1997 20:3723
    
    This can be done by doing the following:
    
    Add a method to the class Object (in the workbench) :
    
    SWC:CallVBProgram()
    {
    	extern()
    	for WSTYPE_OTHER=MEXT_COMMANDLINE("executable name");
    }
    
    Make this method Public and specify that it can be used in menus
    make sure you fill in the desciption, since this is the only field that
    will make the method selectable for a menu item.
    
    Reload Configuration Manager
    
    Create a new menuItem and select the action descibed above.
    
    Commit changes logout/login
    
    
    Han