Xbase++ : DbScope()
Posted: Wed Oct 23, 2019 11:56 pm
hi,
under Clipper i can use
Question : how can i "test" if i have a active Scope
---
i saw DbInfo() and
can i use it (and how) to find out if Scope is active 
under Clipper i can use
Code: Select all
#command SET SCOPETOP TO <x> => OrdScope( TOPSCOPE, <x> )
#command SET SCOPEBOTTOM TO <x> => OrdScope( BOTTOMSCOPE, <x> )
Code: Select all
IF DbScope() // active Scope
// DbScope( [<nScope>] ) --> xScope | aScopeBoth | lIsScope
// SCOPE_BOTH, SCOPE_BOTTOM, SCOPE_TOP
ELSE
SET SCOPE TO "H"
ENDIF
i saw DbInfo() and
Code: Select all
#define DBOI_SCOPETOP 39 /* Get or Set the scope top */
#define DBOI_SCOPEBOTTOM 40 /* Get or Set the scope botto */