View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
We had found, that VFP6 function STRTRAN behaves strangely with large files.

Often we need to display pieces of HTML or XML code on page and use following code for this:
It works quick with small pieces of code, but once we had tried to convert a large text (about 140Kb)  heavily loaded with tags (it was exported from MSWORD) and we where astonished to see that it took about 15 minutes!


We had created RegExp object like this CREATEOBJECT("VBScript.RegExp")
wrote with it function similar by input parameters with VFP STRTRAN and run it against the same file with same parameters - it went like a flash...