BUG: OBJVAR() Returns Incorrect Values When Used in ScreenID: Q123005
WINDOWS | MS-DOS
kbtool kbprg kbbuglist
The information in this article applies to:
SYMPTOMSWhen used in a screen, OBJVAR() returns incorrect values for a current or specified Screen object that has a preceding Push/Radio button object with more than one prompt as following: 1. A NULL value is returned if the current or specified Screen Object is 2. The name of the memory variable, array element, or field associated with
3. If two radio buttons exist on a screen, a NULL value is returned by the
4. The OBJVAR() function inconsistently returns a NULL for objects past
RESOLUTIONYou can use one of the following methods to work around this situation: 1. Do not use Radio or Push button objects with multiple prompts before or 2. Use VARREAD() or SYS(18) functions instead of OBJVAR().
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior1. Create a new screen by using this command:
2. Create a Push Button or a Radio Button object by using this program:
3. Create a Field Object by using this code:
4. Create another Push/Radio button similar to the one described in Step 2,
5. Place the following code in the "Screen Setup Code" clause:
6. Place "ON KEY" command in the "On Screen Exit (Valid)" clause.
7. Generate the Screen, and run it using the RUN command. 8. Select the First Push/Radio Button (1st Screen Object), and press ALT+O. 9. Select The Get Field (2nd Screen Object). Then press ALT+O. Only
10. Select the second Push/Radio Button (3rd Screen Object), and press
11. Exit the Screen. Then open it by using the "MODIFY SCREEN" command.
12. Change the first Push/Radio Buton (1st Screen Object) by using this 13. Generate and run the Screen.
14. Repeat steps 8 thru 10. Notice that OBJVAR() now returns correct' Additional reference words: FoxWin FoxDos 2.60 buglist2.60 SBuilder
KBCategory: kbtool kbprg kbbuglist
KBSubcategory: FxtoolSbuilder
|
|
Last Reviewed: May 2, 1996 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |