INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Need Help with (Ericom) Minisoft Powerterm/32 Script

Need Help with (Ericom) Minisoft Powerterm/32 Script

Need Help with (Ericom) Minisoft Powerterm/32 Script

(OP)
I don't know which forum to put this in, I don't think a lot of people do this (with Telnet), I made a script that reads data from an Excel and can enter data into AS400 screens.

I have it working pretty good, but for some reason won't read past a certain number of Excel rows.

I don't want to post all the code yet as it will likely distract, what I am seeing as the issue.

eg...

Variable $COL9 is getting it's values, I put in a message box to display it...but it works if I the variable equals 9 ( or less), after that nothing happens...If I hardcode this line...
for {i = 2} {$i <= 17 } {incr i } {

where I replaced $COL9 with 17 it will work???


CODE


conv = [dde initiate Excel Order.XLS]

#Increment by row

# Total number of rows including Header in order file
COL9 = [dde request $conv "R2\C9"]

message "Record Count $COL9"


for {i = 2} {$i <= $COL9 } {incr i } {

# Code

}

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close