Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iterating through views in a DataEnvironment
Message
From
23/07/1998 11:04:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/07/1998 10:52:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00120466
Message ID:
00120475
Views:
18
>How do I iterate through the views in a dataenvironment? I see that the DataEnvironment has new properties which are object references to my views, but how can I write generic code to identify them?
>
>
>Bob
nMembers = aMembers(laDE,thisform.dataenvironment,1)
for ix = 1 to nMembers
   if laDE[ix,2] = "Object"
      with eval("thisform.Dataenvironment."+laDE[ix,1])
         if .baseclass = "Cursor"
            lItsLocalView = (cursorgetprop("SourceType",.cursorsource) = 1)
            lItsRemoteView = (cursorgetprop("SourceType",.cursorsource) = 2)
         endif
      endwith
   endif
endfor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform