sql_string=dw_
// Find the first occurrence of old_str
start_pos = Pos(sql_string
// Only enter the loop if you find old_str
DO WHILE start_pos >
// Replace old_str with new_str
sql_string = Replace(sql_string
Len(old_str)
// Find the next occurrence of old_str
start_pos = Pos(sql_string
start_pos+Len(new_str))
LOOP
sql_new=sql_string+
//判斷setsqlselect 函數調用是否成功
if (dw_
messagebox(
return
end if
dw_
dw_
使用SetSQLSelect有一定的要求和限制
[
From:http://tw.wingwit.com/Article/program/PB/201311/24559.html