Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resetting Spinners
Message
De
11/04/2005 18:23:08
 
 
À
11/04/2005 16:26:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01003481
Message ID:
01003534
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform