www.website-watcher.com Forum Index www.website-watcher.com
HomeProductsNewsContact
 
 FAQFAQ   SearchSearch   RegisterRegister   ProfileProfile   Log inLog in 

Documentation needed for undocumented functions

 
Post new topic   Reply to topic    www.website-watcher.com Forum Index -> Plugins and Scripts
View previous topic :: View next topic  
Author Message
pepperxxx



Joined: 29 Apr 2006
Posts: 37

PostPosted: Sat Mar 10, 2012 5:24 am    Post subject: Documentation needed for undocumented functions Reply with quote

I have to check a big catalog of links and compare it against a locally stored file. Unfortunatelly, WSW built-in String List functions do not allow operating more than 1000 entries. I tried to use AssignFile, ReadLn, WriteLn, etc., from the "Undocumented" section, but the plugin reports an error on the following code:

Code:
Dim LogFileName, LogFile
LogFileName = "c:\test.log"
AssignFile (LogFile, LogFileName)
CloseFile (LogFile)


The error text is "Method expects argument 0 as variable reference". The execution stops with this error when the debugger points at the "AssignFile (LogFile, LogFileName)" line. Am I using the function properly? Can you provide just some samples for this function. All I need is to read and write some lines to a big text file.
Back to top
View user's profile Send private message
Martin Aignesberger
Site Admin
Site Admin


Joined: 11 May 2005
Posts: 5843

PostPosted: Mon Mar 12, 2012 3:25 pm    Post subject: Reply with quote

Quote:
Unfortunatelly, WSW built-in String List functions do not allow operating more than 1000 entries.


Are you sure? Do you get an error?

Quote:
I tried to use AssignFile, ReadLn, WriteLn, etc., from the "Undocumented" section, but the plugin reports an error on the following code:


Yes, you're right, I get the same error here. To be honest, I have never worked with these functions myself, they are just available in that third party programming system.

To read/write small text files I would highly recommend the functions FileToString and StringToFile.
To append text to existing (large) files you can use the function AddStringToFile.

If you cannot solve your problem with these 3 functions, I'll take a closer look into these undocumented functions...
_________________
Martin Aignesberger [SUPPORT]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.website-watcher.com Forum Index -> Plugins and Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group