Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to: Create an temp update cursor (V6s5)
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00812227
Message ID:
00812308
Views:
40
In VFP7/8 you can just add READWRITE clause to the query. In VFP6 and earlier
SELECT iItemID, iSecUnitID, SUM(yQty - yClrQty) AS yQty, iSID ;
  FROM TempLKuInqQuotUnClr ;
  WHERE (yQty - yClrQty) # 0 ;
  GROUP BY iItemID, iSecUnitID, iSID ;
  INTO CURSOR temp NOFILTER
USE ( DBF("temp" ) AGAIN IN 0 ALIAS LKuInqQuotUnClrList 
USE IN temp
>Hi all
>
>I require to create a cursor for temporary purposes. This cursor is supposed to have atleast one field yQty that is required to be updated programtically.
>
>Is it possible? I tried creating a view out of it by adding CREATE SQL VIEW viewname AS .... followed by the SELECT statement that was working with INTO CURSOR cursname.
>
>
	CREATE SQL VIEW LKuInqQuotUnClrList AS ;
>		SELECT iItemID, iSecUnitID, SUM(yQty - yClrQty) AS yQty, iSID ;
>		FROM TempLKuInqQuotUnClr ;
>		WHERE (yQty - yClrQty) # 0 ;
>		GROUP BY iItemID, iSecUnitID, iSID
>
>now it does not create any dataset.
>
>Please advise.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform