Unless MapBasic has really changed since 6.5, the variable used in "title
from variable" has to be an array of strings.  

Hope this helps
Spencer


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Terry
McDonnell
Sent: Tuesday, January 24, 2006 11:12 AM
To: [EMAIL PROTECTED]
Subject: [MI-L] What's wrong with this code?

Hi Kind Listers.

Can anyone tell me what's wrong with this snippet of code?
It's from a long-established, working Dialogue.  
The second part, with the route combo, was there originally.  I've added the
combo above it and get the following error(s):

Invalid clause [from] I [dialog] command Unrecognised command Into.
 ...
        Control StaticText
                Title "Select a Service Category from List:"
        Control PopUpMenu 
                Title from Variable gaServCats 
                Into  gnSelSCID

        Control StaticText
                Title "Select a Route to display from List:"
        Control PopUpMenu 
                Title from Variable gaRouteNames 
                Value 1
                Into  gnSelID
...

gnSelSCID is declared global as SmallInt.
gaServCats is a global array of TYPE (i.e. structure)

The TYPE var, and gnSelSCID are both declared in a freshly compiled .DEF
file.
Originally there was a "Value 1" but the same error occurred.

This is doing my head in.

'ppreciate it

Terry McDonnell.

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l



_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to