473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

VBScript problem processing txt file with a function.

Hello experts (bow),

In the code snippet below, I am getting an "Expected End Of Statement" error that is pointing to the middle of the name of the function. Specifically the "c" in fnMaxiclean. Any help is greatly appreciated. I have triple-checked that there are no spelling errors.

Expand|Select|Wrap|Line Numbers
  1. '' Open the file
  2.     Set objFile = objFSO.OpenTextFile(strFileName, ForReading)
  3.  
  4. '' Clean the file line-by-line
  5.     Do Until objFile.AtEndOfStream
  6.         strText = objFile.ReadLine
  7.         strNText = strNText & fnMaxiclean strText
  8.         strText = ""
  9.     Loop
  10.  
  11. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  12. '' Write out to new file
  13.     Set objFile = objFSO.CreateTextFile(strNewFileName)
  14.  
  15. '' populate contents of new file
  16.     objFile.WriteLine strNText
  17.  
  18. '' close the new file
  19.     objFile.Close
Thank you,
Jeff
Sep 25 '09 #1
1 1288
I suppose you should write:
strNText = strNText & fnMaxiclean (strText)

John Clayton - Adersoft
Need a good VBScript editor? Try VbsEdit
Sep 28 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client...
8
by: Dave Thomas | last post by:
I have developed a web site using asp pages that use both vbscript and javascript. Run the site on my PC and everything is fine. Ftp to my web hosting provider which hosts asp pages and look on my...
3
by: kieran | last post by:
Hi, I have a vbscript function and an xsl file and when the vbscript function is ran it creats the xml value that the xsl file then transforms. It was done by Sharepoint so I figure there must...
2
by: Jessard | last post by:
Help! Hi, I'm having a bit (well a lot - it's getting annoying) of trouble using a C# class library within a VBScript on a computer other than the development machine. All the class is needed...
0
by: Scorpius | last post by:
In an old application on which I am working, in an ASP file there is a server side vbscript function that is creating object of a class created in CPP file -- Server.CreateObject(NAME1.CLASS123)...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
4
by: client site dll in vbscript | last post by:
Hi i have one dll on client site,i want to use it in aspx page, on clinet site Is it possible or not .Please tell me the solution Please email me at indipren@hotmail.com Regarda Indi
3
by: Michael | last post by:
Hi. I have COM+ component installed on my XP. I have problem to create instance of it inside vbscript. How can I do it? The error I get is : ActiveX component can't create object. Thanks
1
by: Andrew Wan | last post by:
How can VBScript code access JScript code variables in the same ASP page? <SCRIPT LANGAUGE="VBScript"> Dim a a = 10 </SCRIPT> <SCRIPT LANGUAGE="JScript"> Response.Write(a); </SCRIPT>
0
AHMEDYO
by: AHMEDYO | last post by:
hi all, first its my first time to post question in internet, but vbs really let me crazy. my problem is : ---------------------- i wanna to transfer exe file to machine that i can access by...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.