Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enumerating Data Sessions?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00660418
Message ID:
00660430
Views:
10
Scott,

>>I wish to close ALL tables, regardless of what data session they are in.

There is ASessions() in VFP7. In VFP6 I did:
PROCEDURE ReallyCloseAllData
LOCAL lc_WasError, ll_GoOn, ln_Tables,  ln_i
local array la_x[1,2]

lc_WasError = on("ERROR")

on error ll_GoOn = .F.

ll_GoOn = .T.

set datasession to

for ln_i = 1 to 999
    ln_Tables = aused(la_x, ln_i)

    if ! ll_GoOn
        exit
    endif        
    set datasession to (ln_i)
    close data all
    close data
endfor &&* ln_i = 1 to 10

on error &lc_WasError

set datasession to 

ENDPROC
HTH
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform