Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Used a define in form object property
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00006898
Message ID:
00006933
Vues:
41
>I try to used a define key to initialized the form object property at designe time
>
>At designe time
>
>#DEFINE _exemple 10
>
>VALUE: =MyFonction(_exemple)
>
>Thank's in Advance for your comments
>Rock

Sorry Guys (Alex,Arnon,Chris)

I'v been mis understood. I try to put =MYFONCTION(_exemple) directly in the property sheet in the form designer NOT in Methode

I try to make a exemple

I always in the form designer

In the property sheet at commandbutton1, I write in the CAPTION property
=MYCAPTION(_DefineCaption)

function MYCAPTION
PARAMETERS String_Number
DO CASE
CASE String_Number = 1
RETURN "String 1"
CASE String_Number = 2
RETURN "String 2"
CASE String_Number = 3
RETURN "String 3"
ENDCASE

I maid a define file and I include in the form designer with the menu form // include file...

MyInclude.H
#DEFINE _DefineCaption 1

This Exemple may be serve for change the caption of all object in the form when the user was french or english
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform