Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu is not visible after use showmenu() of menulib
Message
From
25/06/2008 05:36:37
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01325379
Message ID:
01326567
Views:
24
Hi Naomi.

May be create new class based on Grid, insert my code in RightClick() and change class in my form?
"Safe select" approach is good idea. Unfortunately not for me.

Code of Andy Kramek:
LPARAMETERS tcSql, tcAlias
LOCAL lnSelect, lcSql
*** Preserve Work Area
lnSelect = SELECT(0)
*** Cursor does not exist
IF NOT USED( tcAlias )
*** Create it directly
lcSql = tcSql + " INTO CURSOR " + tcAlias + " READWRITE"
&lcSql
ELSE
*** Cursor does exist, use a safe select here
lcSql = tcSql + " INTO CURSOR curdummy"
&lcSql
*** Clear and Update the woirking cursor
SELECT (tcAlias)
ZAP IN (tcAlias)
APPEND FROM DBF( 'curdummy' )
USE IN curdummy 
ENDIF
*** Restore work area and return status
SELECT (lnSelect)
RETURN USED( tcAlias )
not worked in VFP6!
When I create cursor in SQL statement - it open with ReadOnly. And I must reopen it again.
I don't know how in english (in russian dance with "buben").
Thank you for interesting to my problem
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform