Frank I don't hink you can use arrays using this method - however, as you've got your DDE link established you could use the RemoteMsgHandler() to accept a message which you interpret and respond to, more powerful than just 'peeking' at global variables because you can build in more logic at either end.
Paul Crisp Syntegra Innovation Place Delta Bank Road Newcastle NE11 9DJ Tel 0191 461 4522 Fax 0191 460 1987 -----Original Message----- From: frank hebbert [mailto:[EMAIL PROTECTED]] Sent: 10 September 2002 10:35 To: [EMAIL PROTECTED] Subject: MI-L DDE and arrays (was: passing variables between mbxs) Thanks for the suggestions (original Q below), which involved the use of text files to store the info I'm passing around. However, I've gone for DDE linking because it's a bit more flexible to mess around with on the fly. A question - is it possible to pass array variables using DDE? If I request myVar where myVar is an array, I get a blank value. Requesting myVar(2) results in the "Cannot initiate link" error. Any suggestions? I can't find anything in the manuals that suggests arrays can't be used in this way, but then again, I can't find anything which says they can... help! Frank At 17:53 09/09/2002 +0100, frank hebbert wrote: >Hello all > >I want to share variable information between two separate mbx files - they >can't be compiled together, but I want one to set a variable for the other >to pick up. > >For example - myMenu.mbx creates a menu, and the first item, when selected >by my user, stores the value of timer() into myVar. MyMenu remains active. > >A second mbx, myTool.mbx, is then run - but how can it retrieve the value >of myVar? If I dim myVar inside myTool.mbx it will ignore the global var. > >Am I right in thinking that the only way to do this is using DDE commands, >as mentioned in the Mapbasic dev guide? > >cheers > >Frank > > >--------------------------------------------------------------------- >List hosting provided by Directions Magazine | www.directionsmag.com | >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >Message number: 2911 > > --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 2928 ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.com ********************************************************************
