- GIS论坛-GIS空间站 ( http://bbs.gissky.net/Default.asp )
-- MapInfo ( http://bbs.gissky.net/ShowForum.asp?forumid=15 )
--- 关于变量赋变量求助。。。 ( http://bbs.gissky.net/ShowPost.asp?id=43699 )
作者:lyh13
发表时间:2008-4-10 16:00:32
举例说明: 我有一个表:city.tab city.tab中有几个字段:name,comment等都是字符字段。 我想查询两个字段中某一行的 值: Dim str1,str2 as string Dim id as integer open Table city.tab intersective fetch frist from city do while eot() id = city.rowid str1 = "name"(可以从tableinfo获取列名) select * from city where rowid = id into temp temp.str1 ''我 想获取当前行的name值并且把把它赋给一个变量 我用run commang "str2 = " & temp & "." & str1 不行!@求助!!!!!!!!!!!!!! fetch next from city Loop
|