SV: MI MB: Creating and Committing tables (Urgent!)

2000-09-23 Thread Poul Skyum

Martin:

I think you have a folder-problem!.

The command-line:

  Commit Table x2010dm_TR_100plus As
"working\96-10dm\x2010dm_TR_100plus.TAB"

..refers to the current folder (which changes) plus "working\96-10dm\".
Therefore the folder problably doesn't exists, which causes the error.

Instead use an absolute path or use ApplicationDirectory$(),
ProgramDirectory$() or HomeDirectory$() as part of the path.

regards
Poul Skyum
Upgrade-GIS


 -Oprindelig meddelelse-
 Fra: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]På vegne af Martin, Christopher
 (WSA Telford)
 Sendt: 22. september 2000 11:04
 Til: '[EMAIL PROTECTED]'
 Emne: MI MB: Creating and Committing tables (Urgent!)


 I've got some code which takes in some data, does some
 calculations and then
 produces a host of other tables...
 e.g.

 Select NISLID, R_FLOW, RDNAME, FLOW, FLOW / R_FLOW "Stress_All"
   from x2010dm_TR
   where Flow_Category = 3
   into x2010dm_TR_100plus
 Commit Table x2010dm_TR_100plus As
 "working\96-10dm\x2010dm_TR_100plus.TAB"
 TYPE NATIVE Charset "WindowsLatin1"

 When I run this code, I get an error at the Commit Table line: 'File
 "x2101dm_TR_100plus.TAB" does not exist. Unable to create table.'

 Old versions of this table exist but aren't read-only or
 anything. However,
 I tried deleting them, but still got the same error message...

 Any thoughts?


 Chris Martin
 GIS Consultant
 WS Atkins Consultants Ltd
 (01952) 201234

 --
 To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
 "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



SV: MI Create Menu Bar statemant in Runtime

2000-09-17 Thread Poul Skyum


.. or try this:

Declare Sub Main
Declare Sub Restore
Sub Main
  create menu "MyMenu" ID 1 as
"Restore" calling Restore
  Create menu bar as ID 1
End Sub
Sub Restore
  Create menu bar as Default
End Sub


Regards
Poul Skyum
Upgrade-GIS
Denmark

 -Oprindelig meddelelse-
 Fra: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]På vegne af Thomas Brix Lyng
 Sendt: 16. september 2000 10:53
 Til: '[EMAIL PROTECTED]'
 Emne: MI Create Menu Bar statemant in Runtime


 Hi listers

 I have a problem with the create menu bar statemant in a runtime
 version of
 MI 5.5.

 My code is:

 create menu "MyMenu" as
   "Open file" id 1001 calling openfileSub

 Create menu bar as
1001



 but nothing happens when I run the program?

 Regards

 Thomas Brix Lyng
 Frederikshavn Munincipal Administration
 Denmark
 --
 To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
 "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



Vs: MI Tiling windows in MapBasic

2000-02-09 Thread Poul Skyum

The simple way is to call the Tile Windows-functionality by using:

  Run Menu Command 611

or 

  Include "MENU.DEF"
  Run Menu Command M_WINDOW_TILE

Otherwise you have to set the position and size of all windows individually.


Regards

Poul Skyum
Upgrade-GIS
[EMAIL PROTECTED]



- Oprindelig meddelelse - 
Fra: "Tim Warman" [EMAIL PROTECTED]
Til: "Mapinfo-L" [EMAIL PROTECTED]
Sendt: 09. februar 2000 18:37
Emne: MI Tiling windows in MapBasic


 Lister,
 
 After searching through the archives, I get the impression that there is no
 simple MB programmatic way to replicate the Tile Windows function of MI. Can
 anyone suggest a simple yet elegant solution?
 
 TIA
 
 _
 Tim Warman
 Geologist  GIS Specialist
 Richard C. Slade  Associates
 North Hollywood, CA
 (818) 506-0418
 
 --
 To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
 "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



Re: MI Pie chart - pies size question

2000-01-23 Thread Poul Skyum

As far as I see you have only one (half) alternative to the use of the 
WinChangedHandler and Set Shade commands.

This is to make a rutine that builds the pie chart based on region-objects. It'll be 
quite time-consuming when you build it, but then, the pie's will stay constant in size 
regardless of the map zoom. Unfortunately you'll also get a theme that stay fixed, 
with no automatic updating when the attributes changes.

I've stayed with exactly the same problem and did not found any other solution. I'll 
make an extra Shade-option, solving this problem, a wish for comming versions of 
MapInfo.

Regards

Poul Skyum
Upgrade-GIS

E-mail: [EMAIL PROTECTED]

-Original Message-
Fra: Dmitry Bogdanov [EMAIL PROTECTED]
Til: MapInfo-L List [EMAIL PROTECTED]
Sendt: 22. januar 2000 12:48
Emne: MI Pie chart - pies size question


 Hello!
 
 I have a question regarding pie chart. When you zoom the map, pies are changing their
 sizes. But, the customer wants the pies to have constant size regardless of the map 
zoom.
 
 Currently, I use WinChangedHandler and Set Shade command every time the map zoom
 changes, but this is time-consuming when number of pies is 10,000+. Can anyone 
recommend
 better solution?
 
 Thanks,
 
 Dmitry Bogdanov
 GIS Department Manager
 Kiev Software Factory Ltd.
 room 46 9/12 Baumana St, Kiev, Ukraine 03190
 Tel: (380 44) 442-6077; (380 44) 443-7925
 Fax: (380 44) 443-7925
 Internet: http://www.ksf.kiev.ua
 


--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Switch in Select statements (SQL)

1999-07-19 Thread Poul Skyum

Can anyone tell me if it is possible to use the switch-element (or similar) in 
MapInfo(MapBasic) selections, and if so, how to incorporate it. 


Poul Skyum

Upgrade-GIS
Denmark

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]