I'll try that cheryl but I am beginning to suspect the problem is in A5V7 running under XP home. Since the function doesn't complete, fname should have a value. When I go to interactive, I can't get a value for fname so it appears that the form name is not being passed from the autoexec to the function.
One of 3 things has happened.
1. My coding is incorrect. I don't think that is the problem since it works everywhere but in XP home sp2 since I created it in A5V4.
2. Something in XP home is creating the problem.
3. Something in my laptop is causing the problem.
Since most, if not all of us developing apps are running XP pro, I am hoping someone might have XP home running and try it on their machine to see if the code breaks there. If it does, then it is option 2, and if it doesn't, it is option 3. I just need to know where to look and if it is option 2, then it is a bug and needs to be reported.
This function was designed to center any form on the screen. I made it general purpose so that it will work with any form and I can use it on a button to open a different form. I normally hide the current form when a new form is opened so I have the if is_object to restore it if they want to go back to a form already loaded.
Since this function is one of the crucial pieces of my app, it must work in all situations and it isn't. Further development of this or another function will allow a second copy of a form to be opened if the user determines it is necessary.
One of 3 things has happened.
1. My coding is incorrect. I don't think that is the problem since it works everywhere but in XP home sp2 since I created it in A5V4.
2. Something in XP home is creating the problem.
3. Something in my laptop is causing the problem.
Since most, if not all of us developing apps are running XP pro, I am hoping someone might have XP home running and try it on their machine to see if the code breaks there. If it does, then it is option 2, and if it doesn't, it is option 3. I just need to know where to look and if it is option 2, then it is a bug and needs to be reported.
This function was designed to center any form on the screen. I made it general purpose so that it will work with any form and I can use it on a button to open a different form. I normally hide the current form when a new form is opened so I have the if is_object to restore it if they want to go back to a form already loaded.
Since this function is one of the crucial pieces of my app, it must work in all situations and it isn't. Further development of this or another function will allow a second copy of a form to be opened if the user determines it is necessary.
Comment