Well, Andy. I got the w7 computer back now with a good installation of the sdk and java. It works as before (much relief). However, no matter which scenario I use with your code (I can now use the emulator) for the point protection, I still get a "unable to parse:boolean" message or it will not allow entry of a replacement number. When this line occurs: "if pointprotect,then return", it returns to that line after the msgbox (in the pointprotect sub) closes. How would it know what to do then? Sorry to be a pain.
Copied this from the other thread to keep it all together.
Jim,
You are never a pain!
Lets sum up the code and what should happen:
1) You click on the OK button
2) The Sub
btnOK_click is called
3)within Sub btnOK_click you call
generalsubs.pointprotect, and if this returns a
True value we know we have a duplicate
4a) If we have a True value, we exit (
Return) from the Sub btnOK_click to allow the user to enter a different number.
4b) If we have a False value we process the data
Now as I understand it when Sub pointprotect is called with a duplicate value, it is displaying the messagebox (so should be returning a True value), but the rest of btnOK_click is being run (so the true value is not triggering a return from btnOK_click.
Is that an accurate summary?
Now, post up the code that doesn't throw up the error and we can put some checks into it to see where it is falling over.