Article ID: 101046
Article Last Modified on 2/12/2007
USE CLIENTS.DBF GETEXPR to x GETEXPR to y SELECT * FROM clients WHERE &x HAVING &y INTO CURSOR Test BROWS PROCEDURE notcalled SELECT * FROM clients WHERE state="CA" HAVING city="Los Angeles"When the .EXE file is run, two expression boxes appear in succession.
="TX"
="Lubbock"
CLOSE ALL
DELETE FILE temp.dbf
CREATE TABLE temp (City c(20),state c(2))
INSERT INTO temp (city,state) VALUES ("Charlotte","NC")
INSERT INTO temp (city,state) VALUES ("Seattle","WA")
INSERT INTO temp (city,state) VALUES ("Dallas","TX")
INSERT INTO temp (city,state) VALUES ("Atlanta","GA")
x=INPUTBOX("Enter city name" )
y=INPUTBOX("Enter state")
SELECT * FROM temp WHERE city=&x having state=&y INTO CURSOR test
BROWSE
CLOSE ALL
DELETE FILE temp.dbf"Charlotte"
"NC"
Additional query words: VFoxWin FoxDos FoxWin 2.x standalone memvar memory variable variables replaceable replacement
Keywords: kbcode KB101046