Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview - Checked only with a condition
Message
From
08/12/2008 08:55:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Treeview - Checked only with a condition
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01365937
Message ID:
01365937
Views:
60
Hi...

at mytreeview.nodecheck method I'm trying to:
*** ActiveX Control Event ***
Lparameters toNode
This.SelectedItem = toNode
If  Empty(toNode.Tag)
	Thisform.actionrecursive_in_child( toNode )
Else
	Select mytableA
	Set Order To client_id
	Seek toNode.Tag
	If  Found() and !Empty(clients.email)
	    toNode.Checked = !toNode.Checked=.t. && seems doing fine
	Else
        	    toNode.Checked = .f.   && here is the point... uncheck fine here.
	    *This.SelectedItem.Checked = .f.
	*   ?? CHR(07)
	*   ThisForm.Container1.Text10.SetFocus()
	*	NODEFAULT 
                *	RETURN .f.
	Endif
Endif
My goal is about to doesn't allow the user check items with empty field of client's email...

So, if I Follow this code with debug... it run and does fine what I'm trying to do... But after notecheck method it becomes checked again with no logic reason.

Is there a way, on treeview, to allow check only in some sort of data??

TIATOALL

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Next
Reply
Map
View

Click here to load this message in the networking platform