Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defining class question
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Defining class question
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00997634
Message ID:
00997634
Vues:
47
Sorry about vague title.

I have a grid. When the grid is built in code I want one of the columns to have checkbox class instead of textbox. So I remove the textbox and add a checkbox-based class:
.RemoveObject( "Text1" )	
.AddObject( "print_it", "chk_select_to_print" ) 
The following is the code that defines the "chk_select_to_print" class:
DEFINE CLASS chk_select_to_print AS CHECKBOX

 PROCEDURE InteractiveChange

  if this.value
     * my code goes here
  else
     * my code goes here
  endif		
 END PROCEDURE
		
ENDDEFINE
But the code InteractiveChange method never fires when I click on the check box in the grid.

What am I missing?

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform