Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort incongruity with COM server

Status
Not open for further replies.

Paranoia99

Programmer
Apr 16, 2001
6
US
I have built a class (VFP6) that generates an html file from
a table. Testing it in VFP by dropping it on a form, it works great. However, after I compiled it into an out of process COM .exe and instantiated it in an Active Server Page, the object builds the page, but incorrectly. To generate the html page correctly, I rely on the table being ordered by 2 fields for use with SCAN. The problem is, if I drop the class on a form in VFP6, the table sorts as expected. However, the COM object seems to not sort the table at all. In fact, it appears to be in the same exact order as the table I pull it from.

The sort is performed by:
SELECT * FROM mytable into newtable ;
ORDER BY onlevel DESC, posnum ASC

I have tried changing the field names to the appropriate column numbers, and I have tried using SORT TO, but with no success. Each time newtable is still unsorted when the COM server does it from the ASP, and each variation has worked perfectly when making a quick test form in VFP.

Any ideas why this happening?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top