Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique Identifier for controls
Message
De
27/09/2006 04:37:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/09/2006 21:49:52
Goran Zidar
National Australia Bank
Melbourne, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01152540
Message ID:
01157404
Vues:
25
>perhaps I misunderstood the question... I believe the question was to have a unique ID for a particular form not for each control on that form.
>
>If the request is for a unique ID for each control on that form then it would be simple matter to add the object's full name to the string for each control... since a form cannot have two objects of the same name then that might would work. Or simply add a second SYS(2015) to the end of the string for each control.

Yes the question was about having a unique ID for each control and not the form. Forms already have their unique names within an application.
sys(1271) and sys(1272) provide ways for adding object's fullname as I said earlier. I had a similar necessity and for some generic controls (namely grids in my case loading data from different sources on the fly) just having the control's unique identification was not sufficient. I needed extra info about its source and even application version so I ended up with sys(1271),sys(1272),agetfileversion() + 2 checksum values. Resulting uniquename looked like:

< myApplication9_0_3.06049_41891_d:\myPath\forms\myForm.grdSomething >

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