Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resetting Spinners
Message
From
11/04/2005 18:23:08
 
 
To
11/04/2005 16:26:15
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003481
Message ID:
01003534
Views:
13
>Anyone know how I can reset a spinner low and high value based off the quantity of items on hand. The code is listed below:

Bounded ?
* PROC RequestSpin.refresh

  this.Value = MAX(m.this.SpinnerLowValue,MIN(m.this.Value,m.this.SpinnerHighValue))
IF v_man_inv.qty_onhand = 0
	This.Parent.RequestSpin.SpinnerLowValue = 0
	This.Parent.CartButton.Enabled = .F.
	This.Parent.RequestSpin.Enabled = .F.
ELSE
	This.Parent.CartButton.Enabled = .T.
	This.Parent.RequestSpin.Enabled = .t.
	This.Parent.RequestSpin.SpinnerLowValue = 1
	This.Parent.RequestSpin.SpinnerHighValue = (v_man_inv.qty_onhand * .20) + v_man_inv.qty_onhand
ENDIF

******** This.Parent.RequestSpin.refresh() IF YOU DON'T USE nodef into parents refresh

thisform.refresh
Previous
Reply
Map
View

Click here to load this message in the networking platform