Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Defining class question
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Defining class question
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
00997634
Message ID:
00997634
Views:
46
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
Next
Reply
Map
View

Click here to load this message in the networking platform