ID: Q114198
The information in this article applies to:
When the 'KEYCOMP' parameter is passed to the SET() function (as shown in the following example), an "Invalid Set Expression" error message is produced:
? SET('KEYCOMP')
SET KEYCOMP is not a valid set expression under FoxPro for MS-DOS. To visually emulate the SET KEYCOMP behavior, implement the following code:
DO CASE
CASE _WINDOWS = .T.
KEYCOMP = "Windows"
CASE _MAC= .T.
KEYCOMP = "Mac"
CASE _DOS= .T.
KEYCOMP = "DOS"
ENDCASE
When this code is run under FoxPro for MS-DOS, the "DOS" option will be
returned to the screen. Unfortunately, the keyboard navigation cannot be
changed from the default MS-DOS command.
Microsoft has confirmed this to be a problem in FoxPro versions 2.5b and 2.6 for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
In FoxPro for Windows and FoxPro for Macintosh, SET('KEYCOMP') can be used to determine what type of keyboard navigation was chosen with the SET KEYCOMP command.
Additional reference words: FoxDos 2.50b 2.60 errmsg err msg buglist2.50b buglist2.60 KBCategory: kbprg kberrmsg kbbuglist KBSubcategory:
Last Reviewed: April 18, 1995