Hello frank,
Monday, September 09, 2002, 8:53:02 PM, you wrote: fh> Hello all fh> I want to share variable information between two separate mbx files - they fh> can't be compiled together, but I want one to set a variable for the other fh> to pick up. fh> For example - myMenu.mbx creates a menu, and the first item, when selected fh> by my user, stores the value of timer() into myVar. MyMenu remains active. fh> A second mbx, myTool.mbx, is then run - but how can it retrieve the value fh> of myVar? If I dim myVar inside myTool.mbx it will ignore the global var. fh> Am I right in thinking that the only way to do this is using DDE commands, fh> as mentioned in the Mapbasic dev guide? fh> cheers Read MapBasic help :) ============================================= Reading variables from another application ============================================= If two or more MapBasic applications are running at the same time, one application can examine the other application's global variables (variables created using the Global statement instead of the Dim statement). On Windows, set up a Dynamic Data Exchange (DDE) conversation to access the other application's variables. Use the DDEInitiate(�) function to begin a DDE conversation, and use the DDERequest$(�) function to retrieve the value of the other application's global variable. For more information, see DDE. fh> Frank -- Best regards, Vladimir Lashin MBBuilder COD mailto:[EMAIL PROTECTED] microOLAP Technologies LLC http://www.microolap.com/gis/ - GIS related products --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 2912
