It's probably not the FoxPro code that is taking 5 minutes. It is likely the browser trying to choke down the html. What kind of hardware are you running?
One way to find out is to set a datetime as a tag at the top of your page and another one at the end of the scan loop, then you will be able to see if it is FoxPro or the browser.
>This is my code. However it still seems to take over 5 minutes to run? It seems to me the more I store to the memory variable the slower it gets. Any ideas what my problem is (= sign used in place or < >)?
>
>
>Use mytable in 0 shared
>
>
>gnFieldcount = AFIELDS(gaMyArray)
>
>m.test='=TABLE BORDER=10='
>scan
> m.test=m.test + "=tr="
> FOR nCount = 1 TO gnFieldcount
> m.test=m.test+"=td= "+alltrim(eval(gaMyArray(nCount,1)) )'; + " =/td="+chr(10)
> ENDFOR
>
> m.test=m.test+"=/tr="
>
>
>endscan
> m.test=m.test+'=/table='
>
>html_out=m.test
>
>
>Thanks again.
>Todd
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California