BUG: SYS(2014) Allows Wrong Data Type for Second Parameter

Article translations Article translations
Article ID: 190820 - View products that this article applies to.
This article was previously published under Q190820
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

SYMPTOMS

Passing anything other than a character data type as the second parameter to the SYS(2014) function does not result in a "Function argument value, type, or count is invalid" error even though the data type is incorrect. Under some circumstances, passing an incorrect data type may cause a Fatal Exception error.

RESOLUTION

You must check the data type of the second parameter before passing the value to the SYS(2014) function. Then you can use the TYPE() function to verify that the data type of this parameter is character.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Run the following line of code from the Command window:
          SYS(2014,"TEST",.F.)
    							
RESULTS: You do not get the error message mentioned in the SYMPTOMS section, and a Fatal Exception may occur.

Properties

Article ID: 190820 - Last Review: February 21, 2014 - Revision: 1.1
APPLIES TO
  • Microsoft Visual FoxPro 5.0 Standard Edition
  • Microsoft Visual FoxPro 5.0a
  • Microsoft Visual FoxPro 6.0 Professional Edition
Keywords: 
kbnosurvey kbarchive kbbug kbpending KB190820

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com