Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Aselobj()
Message
De
21/12/1999 06:04:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/12/1999 20:56:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00305952
Message ID:
00306586
Vues:
30
>i was tinkering with the aselobf() function for possible use. i observed that the order is based on objects created. just another newbie question, how can i arrange the order based on objects selected. i'm using vfp5.
>
>TIA,


I find it rather hard to do with aselobj(). Because aselobj doesn't order elements by the order you choose them but name. Furthermore it "does" change the tabindex but with each change what you get is not what you want.
Unfortunately VFP dropped old good grouping + reorder fields from its menu. You have a chance to either doing tabordering interactively or by list (interactive-list styles could be changed from tools\option\forms\tab ordering and tab ordering could be accesed by either clicking "taborder" icon on toolbar or from view menu).
Aselobj() is most usedly by builders. ie: Suppose you want to draw a ruler with lines and want its tickmarks have some methods (you say I would subclass it - yes but just suppose you didn't). It would be hard to place precisely numerous lines and cut&paste PEM. You just place a few such as base, major and minor ticks, write code there. Then a program with aselobj() generate rest for you using its well supporters cloneobject(), readmethod(), writemethod() etc ;)
Or as an another example suppose you want to write the same keypress method to all textbox controls in a grid (BTW I don't mean I ever do this) and in the meantime change their classes. aselobj() would provide the object ref. for selected grid(s) and you could change their class, copying necessary props to new objects + writemethod() would write the additional code.
Or totally programmatically create a visual form :)
Posssible uses are endless (slightly more than builders count:)
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
Répondre
Fil
Voir

Click here to load this message in the networking platform