Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Differences
Message
From
24/10/2000 16:22:23
 
 
To
24/10/2000 16:17:08
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00433760
Message ID:
00433765
Views:
14
>
>Btw, here's how I open my DB and tables:
>
>FUNCTION openDB
>	CLOSE TABLES
>	CLOSE DATABASES ALL
>	SET EXCLUSIVE ON
>	SET MULTILOCKS ON
>	OPEN DATABASE "[path]/m_db"
>	IF dbused("m_db")
>                *Opening each table...
>		USE pat in 1
>		=CURSORSETPROP("Buffering", 3)
>		USE par in 2
>		=CURSORSETPROP("Buffering", 3)
>		USE tem in 3
>		=CURSORSETPROP("Buffering", 3)
>		USE app_error in 5
>		=CURSORSETPROP("Buffering", 3)
>		USE princ in 6
>		=CURSORSETPROP("Buffering", 3)
>	ENDIF
>ENDFUNC
>


Couple of things:
1) Don't use USE xx IN 1 [2,3,etc.] - use USE xx IN 0 That way you are always using an empty workarea.
2) The CURSORSETPROP() needs the alias if it's not on the correct table already. e.g., CURSORSETPROP("Buffering", 3, "princ")
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform