SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Syntax of FileReadLine

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Syntax of FileReadLine
Author Message
Jane Jackman



Joined: 18 Mar 2002
Posts: 3

Post Syntax of FileReadLine Reply with quote

I have a problem with the syntax of this command.
In the example below the 2nd FilereadLine works but the
1st doesn't. It errors with file not found message. Please
help,
Jane

dim limits_file, string
Dim reportset_name, string
Dim report_dir, string
dim quote, string
Dim tmpstr, string

set quote, "\""
set report_dir, "T:\\"
set report_name, "Cmp Fa JJ.XLS"
set reportset_name, "Cmp Fa - BCU"

ConcatEx quote, report_dir, reportset_name, ".limits", quote, limits_file

FilereadLine limits_file, 1, tmpstr

FilereadLine "T:\\Cmp Fa - BCU.limits", 1, tmpstr

Wed Sep 17, 2003 9:17 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7842

Post Re: Syntax of FileReadLine Reply with quote

Did you copy the correct script? The is no definition for report_name variable.
Anywy if you run this script in the debugger and debug step by step in a matter of seconds you will easily find where the problem is.

: I have a problem with the syntax of this command.
: In the example below the 2nd FilereadLine works but the
: 1st doesn't. It errors with file not found message. Please
: help,
: Jane

: dim limits_file, string
: Dim reportset_name, string
: Dim report_dir, string
: dim quote, string
: Dim tmpstr, string

: set quote, "\""
: set report_dir, "T:\\"
: set report_name, "Cmp Fa JJ.XLS"
: set reportset_name, "Cmp Fa - BCU"

: ConcatEx quote, report_dir, reportset_name, ".limits", quote,
: limits_file

: FilereadLine limits_file, 1, tmpstr

: FilereadLine "T:\\Cmp Fa - BCU.limits", 1, tmpstr

Wed Sep 17, 2003 9:53 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
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
Design by Freestyle XL / Flowers Online.