Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL problems
Message
From
24/09/1998 13:38:01
 
 
To
24/09/1998 10:05:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00140068
Message ID:
00140472
Views:
25
>Nope. I want to write back to the original table. Like I would if I were using a view. The "people" table in the above example. ???
>
*
*	From BostonComputerNewsNetwork @NJ Fox-user 6-22-94
*+
*PURPOSE:
*	To Make SQL read-only cursor into R/W cursor
*	Must be real file not filtered view
*
*SYNTAX:
*	m.retstat = mkcursrw(m.cn) 
*PARAMETERS:
*	m.cn		-(C)	Cursor alias name to be made read/writable.
*
*RETURNS:
*	m.retstat	-(L)	.t. made the read-only cursor to R/W cursor.
*						.f. the cursor alias name does not correspend
*						to a cursor.
*REMARKS:
*SEE ALSO:
*-
*
FUNCTION mkcursrw
PARAMETER m.cn
PRIVATE m.cf, m.retstat
m.cf = DBF(m.cn)
IF ".TMP"=RIGHT(m.cf,4)
  USE (m.cf) AGAIN IN 0 ALIAS dummycname
  USE IN (m.cn)
  USE (m.cf) AGAIN IN 0 ALIAS (m.cn)
  USE IN dummycname
  SELECT (m.cn)
  m.retstat = .t.
ELSE
  m.retstat = .f.
ENDIF
RETURN m.retstat
****
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform