用mapbasic中 fetch怎么用,求解释每一句,特别是fetch first from asdf,运行时显示找不到asdf文件。。
include"mapbasic.def"declaresubmaindeclaresubdrawpointsubmaincalldrawpointendsubsubdr...
include "mapbasic.def"
declare sub main
declare sub drawpoint
sub main
call drawpoint
end sub
sub drawpoint
dim x as float
dim y as float
dim i as integer
i = 1
fetch first from asdf
do until eot(asdf)
x = asdf.a
y = asdf.b
note x
update asdf set obj = CreatePoint(x, y) where rowid = i
i = i + 1
fetch next from asdf
loop
end sub 展开
declare sub main
declare sub drawpoint
sub main
call drawpoint
end sub
sub drawpoint
dim x as float
dim y as float
dim i as integer
i = 1
fetch first from asdf
do until eot(asdf)
x = asdf.a
y = asdf.b
note x
update asdf set obj = CreatePoint(x, y) where rowid = i
i = i + 1
fetch next from asdf
loop
end sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询