阅读:2045回复:5
求助: mapbasic 中的 commit as 函数
<P><STRONG>mapbasic 中的commit as 语句总是报错,无法建立新表,请高手指导一下,谢谢!</STRONG></P>
<P>Include "mapbasic.def"<br>Declare Sub Main</P> <P>'*****************************************************<br>Sub Main </P> <P><br>open table "c:\ay.tab"</P> <P>commit table ay as " c:\ayd.tab" </P> <P><br>End Sub<br></P> <P>'*****************************************************<br></P> [此贴子已经被作者于2005-9-12 14:20:17编辑过]
|
|
1楼#
发布于:2005-09-14 09:03
Sub Main
<P><BR>open table "c:\ay.tab"</P> <P>add map auto layer ay</P> <P>commit table ay as " c:\ayd.tab" </P> <P><BR>End Sub<BR></P> |
|
2楼#
发布于:2005-09-14 09:04
试一下
|
|
3楼#
发布于:2005-09-15 11:43
<P>谢谢了,可还是报错呀,提示: Invalid window identifier:0</P>
<P>能不能给举个简单例子,说明一下commit as 的使用,谢谢!</P><img src="images/post/smile/dvbbs/em02.gif" /> |
|
4楼#
发布于:2006-02-11 23:58
<P>在mapinfo里显示mapbasic窗口,然后随便打开一个表,再另存表,然后你看一下窗口里的语句,答案可能就在里头吧.试试.</P>
|
|
5楼#
发布于:2009-03-25 14:38
<P>献上个成功的例子</P>
<P>include "mapbasic.def"<BR>declare sub main<BR>sub main<BR>open Table "e:\te.tab"<BR>Map From te<BR>commit Table "te" AS "f:\q.tab"</P> <P>end sub</P> |
|