Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iterating through views in a DataEnvironment
Message
De
23/07/1998 11:04:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/07/1998 10:52:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00120466
Message ID:
00120475
Vues:
19
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform