Solved

changing the range of a spin control

Posted on 2000-03-29
6
193 Views
Last Modified: 2013-11-20
Hi!

I have an application where the value of a field changes the range of available values in another field.  From what i've seen, using setrange32 two times doesn't seem to change the previous range of values sent to the spin using the very same function.  Can you tell me if the range can be set and then reset dynamically?

Thanks!
0
Comment
Question by:asavard
  • 2
  • 2
  • 2
6 Comments
 
LVL 23

Expert Comment

by:naveenkohli
ID: 2667277
you should not have any problem with changing the range value dynamically by SetRange function. Are you resetting the values in some other function? May be thats what you are running into.
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2667301
I am not aware of any limitation here.

Try it in debug mode, and trace all calls to SetRange.

Perhaps you are calling it once with the new and then again with the old values.  Or the values you are actually calling with are not what you think they are.
0
 

Author Comment

by:asavard
ID: 2669374
OK I am an idiot!  Can someone come here and kick my silly ass?  Of course the problem was another function reseting the values.  But worse, the functions were both in the same function.  Well that's what happens when you are bored with some code, you become too lazy to step into it and find a pretty obvious answer...

HO WELL!

OK, who deserves those points?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 10

Accepted Solution

by:
RONSLOW earned 50 total points
ID: 2672680
Consider your silly ass kicked .. perhaps you can do the same for me sometime, as I kick my own often enough :-)

I think I desrve the pointer .. I suggested that you had two calls.  

Didn't think you'd be silly enough to do it in the same function ;-)

0
 

Author Comment

by:asavard
ID: 2673097
OK RON

Considering you also explained me some stuff as a comment in another question, i think it at least deserves a couple of pointes heh!

Thanks!
0
 
LVL 23

Expert Comment

by:naveenkohli
ID: 2673379
just to make my point..
i think i made that comment first :-)
the problem solved thats what matters..

Have Fun
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best tools for Backup and restore of Wordpress site 6 55
substring method in java 1 96
Problem to open Excel file 15 91
Way to decrease size of apk file 9 40
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now