举例说明:
我有一个表: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