Microsoft KB Archive/172155

= BUG: Decimal Values Missing from Internet Search Wizard Results =

Article ID: 172155

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q172155



SYMPTOMS
When using the Internet Search Wizard to query against numeric data in FoxPro tables, decimal places will be truncated in the results.



RESOLUTION
In order for the decimal values to be displayed properly, the STR function must be used in the SELECT statement in the IDC file. The IDC file may be edited in a text editor such as Notepad.

For example, the following IDC file that was generated by the Internet Search Wizard has been modified to include the STR function for numeric fields (Numfield1 and Numfield2): Datasource: Template: TEST.HTX SQLStatement: +SELECT Field1, Field2, STR(Numfield1,10,2), STR(Numfield2,10,2) + FROM 'TEST' + WHERE ID = '%SearchParam%' Maxrecords: 10



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
 Follow the steps in the following Knowledge Base article to create an Internet search page using the Internet Search Wizard. Use a table that contains numeric fields.

165775 HOWTO: Setting up a Visual FoxPro Internet Server

 Access the search page from your Web browser.

NOTE: The decimal values on the numeric fields are truncated.

Additional query words: InetWiz

Keywords: kbbug KB172155

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.