Article ID: 149107
Article Last Modified on 2/10/2000
PARAMETERS lcCustID
SET DEFAULT TO HOME()+"Samples:Data"
OPEN DATA TestData.DBC
SELECT SUM(Order_Amt) AS Tot_Ord_Amt ;
FROM Orders ;
WHERE Cust_Id=UPPER(lcCustID) ;
INTO CURSOR Temp
SET DEFAULT TO HOME()
IF _TALLY > 0 && Check to see that any records where found
RETURN Temp.Tot_Ord_Amt
ELSE
RETURN _TALLY
ENDIF
copy (display dialog "Please enter the Customer's ID" buttons ;
{"OK", "Cancel"} default answer "") to dialogResults
if the button returned of dialogResults is "OK" and ;
{the text returned of dialogResults} is not "" then
tell application ;
"Macintosh HD:Microsoft Visual FoxPro:Microsoft Visual FoxPro"
activate
Do Script "SET DEFAULT TO HOME()"
Do Script ;
"myquery(["&{the text returned of dialogResults}&"])"
display dialog the result
end tell
end if
Additional query words: VFoxMac
Keywords: kbcode KB149107