Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSession.Controls
Message
From
20/08/1999 10:43:40
 
 
To
19/08/1999 12:10:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00255352
Message ID:
00255863
Views:
11
Hi Mike.

>Is there a way to loop through all controls in a datasession ( I didn't see a controls or objects property

Do you mean DataEnvironment? If so, here's what I do:
lnObjects = amembers(laObjects, Thisform.DataEnvironment, 2)
for lnI = 1 to lnObjects
    loObject = evaluate('toDE.' + laObjects[lnI])
    if upper(loObject.BaseClass) = 'CURSOR'
* do something with it
    endif
next
Now, if it's a datasession you want to process, you need to use AUSED().

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform