[Gambas-user] What is the use of Tag property
Demosthenes Koptsis
demosthenesk at ...626...
Sun Dec 12 09:32:37 CET 2010
Ok i see.
i used to use buttons event click for each one button and it is a bit
strange to understand it.
So if i understand right instead of click event you use a SELECT CASE
for tag property?
On Sun, 2010-12-12 at 10:22 +1100, Michael wrote:
> If you want a practical example. I have a data form with Edit, Add and
> Save buttons. When I click Edit or Add I set the tag property of the
> form; it can be anything "add" "edit or "1" and "2". When the Save
> button is clicked I then know which action to take. It's use is purely
> at the developer's discretion. In a sense it works as a global variable
> but is better because nobody likes globals.
>
> Regards
> Michael
>
>
> On 12/12/10 01:35, Demosthenes Koptsis wrote:
> > PROPERTY Tag AS Variant
> >
> > Returns or sets the control tag.
> >
> > This property is intended for the programmer and is never used by the
> > component. It can contain any Variant value.
> > ------------------------------------------------
> >
> > ok but what is the use of this property?
> >
> >
>
> ------------------------------------------------------------------------------
> Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
> new data types, scalar functions, improved concurrency, built-in packages,
> OCI, SQL*Plus, data movement tools, best practices and more.
> http://p.sf.net/sfu/oracle-sfdev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Regards,
Demosthenes
More information about the User
mailing list