| View previous topic :: View next topic |
| Author |
Message |
pepperxxx
Joined: 29 Apr 2006 Posts: 37
|
Posted: Sat Mar 10, 2012 5:24 am Post subject: Documentation needed for undocumented functions |
|
|
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 |
|
 |
Martin Aignesberger Site Admin

Joined: 11 May 2005 Posts: 5843
|
Posted: Mon Mar 12, 2012 3:25 pm Post subject: |
|
|
| 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 |
|
 |
|
|
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
|