Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement