Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ReadOnly and ProgrammaticChange. Bug or ???
Message
De
15/04/2003 08:20:43
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/04/2003 05:37:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00777603
Message ID:
00777649
Vues:
8
>Hi all
>
>I want create a class ( ex. TextBox ) with support of readOnly mode.
>
>#DEFINE ErrCode_ReadOnly NNNN
>
>objectClass.readOnly = .T.
>
>on
>
>objectClass.ProgrammaticChange Event:
>IF m.this.readOnly
> ERROR ErrCode_ReadOnly &&& ,message ...
> nodefault
> return .F.
>ENDIF
>
>on program code
>
>object.Value = 'something'
>
>All good ? No!
>
>ProgrammaticChange ignore nodefault and RETURN .F !
>
>ProgrammaticChange true name is ProgrammaticChangeAfter ?
>
>I am mistaking? Where ?
>
>Fabio

Fabio,
AFAIK you can't disable change of value in programmaticchange. It occurs when the change occurs. Maybe what you're looking for is value_assign.
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