1.首先向tab文件中写入一些相关信息
open file "D:testbmp" & danyuan_name & ".tab" for output as #1
print #1, "!table"
print #1, "!version 300"
print #1, "!charset WindowsSimpChinese"
print #1, ""
print #1, "Definition Table"
print #1, " File "& """" & danyuan_name & ".bmp" & """"
print #1, " Type " & """" & "RASTER" & """"
print #1, " (0,0) (0,0) Label " & """""" & ","
print #1, " (1,0) (1,0) Label """","
print #1, " (0,1) (0,1) Label """""
print #1, " CoordSys NonEarth Units " & """" & "ft" & """"
print #1, " Units " & """" & "ft" & """"
close file #1
2.打开该tab文件(表)
Open Table "D:testbmp" & danyuan_name & ".tab" Interactive
Map From "_" & danyuan_name 或者:Map From danyuan_name