FIX: Save As HTML Not Working Correctly with Double Data Types (195626)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q195626

SYMPTOMS

When you use the GenHTML engine to save the contents of a Visual FoxPro table to a .html file, any fields of the type double are not represented correctly in the resulting .html file.

RESOLUTION

The October 1998 Visual FoxPro 6.0 Gallery and FoxPro Foundation Classes (FFC) update includes a new version of the GenHTML.prg file, which addresses this problem. You can download the update from the following Web address:

http://msdn.microsoft.com/vfoxpro/downloads/updates.asp

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This bug was corrected in the October 1998 Visual FoxPro 6.0 Gallery and FFC updates.

-and-

This bug was corrected in Visual Studio 6.0 Service Pack 3.

For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed

MORE INFORMATION

Steps to Reproduce Behavior

Run the following code:
*!*  Create Sample Data
CREATE TABLE testdata (data b(5))
APPEND BLANK
REPLACE DATA WITH 99999
BROWSE NOWAIT
*!*  Generate HTML and display in browser
DO (_GENHTML) WITH 'Double Field',alias(),2
				
Note that the .html file displayed in the browser does not show any decimal places for the data contained in the table.

Modification Type:MajorLast Reviewed:10/15/2002
Keywords:kbBug kbFFC kbVS600sp3fix KB195626