fnGeneralConversion(...) DESCRIPTION This function converts the contents of a text based file (eg .bat .txt .asp .htm) according to certain rules which are supplied in a database table. The rules are regular expressions or search strings. The original file is unchanged and the converted contents are saved in another file. EXAMPLE <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> '*** MakeSlang table contains the following data: '*** '*** ID msPattern msReplacement '*** 1 ing in fnGeneralConversion _ "MakeSlang", "msPattern", "msReplacement", _ "c:\Info.txt", "c:\Slang.txt" '--<--<--<--<--<--<--<--<--< %> RESULTS The file 'c:\Slang.txt' will have all 'ing' words (going, making) changed to 'in' (goin, makin) PARAMETERS sConversionTable: This is the database table which is used to match the ''regular expression" pattern and provide replacements sPatternField: This is the field in the database table which contains the regular expression ('search string') pattern to be matched sReplacementField: The field that supplies the replacement string for the pattern. sObjectFile: The file to convert sTargetFile: The file to save the converted contents in. If the file already exists then the old contents are overwritten (lost). If it does not exist a new file is created. STATUS working, tested 30% LAST MODIFIED 7 April 2000 PROGRAMMER Matthew Bishop LOCATION (203.62.157.45) c:http://www.geocities.com/matth3wbishop/eg/asp/ COMMENTS: At the moment the database is hardwired to the MJBdata database on the Acid Server (Massive Interactive). The function calls fnErrorMessage. The function has comprehensive error handling.