Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Return Value in Spinner

Status
Not open for further replies.

TerryUrb

Programmer
Oct 3, 2005
40
CA
I have a problem with updating a spinner value. I am using one form to call another form. The value if form 1 I want to display in the spinner in form 2 before the user changes the value. The spinner Minimum value of 1 and a maximum value of 7 and it always defaults to 0. I have tried this.value = 1 or this.value = UpdatedValue but it is not changing. Can someone help me out please? Thanks
 
Pass the value you want as a parameter to form2. Then, in form2's Init, use code like:

lparameter nTheValue

This.MySpinner.Value = m.nTheValue

Tamar
 
Hi Tamar,
Thank you, that worked great. I just needed to put it into the correct spot to make it fire. I am new to the Forms, and it is a bit difficult to know exactly where the program is running.

Terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top