Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic General > trying to load ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 608 of 684
Post > Topic >>

trying to load a row to a column using scriptbasic (or a better basic if there is one)

by edexter <Eric_Dexter@[EMAIL PROTECTED] > Jul 24, 2007 at 07:29 AM

I am trying to load a row from one file into a column from another
file and I am getting some errors because it doesn't like how I am
trying to write to the output file and it is giving me nested
errors...  Am I making a simple mistake??  (does anyone eve use script
basic)..  is there another basic this would be a simple task in??




print "input file"
line input filname$
print "input column file"
line input filename2$
print "column number"
line input columnnumber
print "output file"
line input outputfile$

open filename2$ for input as 2
open outputfile$ for output as 3
line input #2, b
splita b by " " to columnfile

for x = lbound(columnfile) and ubound(columnfile)
  open filename$ for input as 1
  line input #1, a
  close 1
  print 1
  rem split the string into an array
  splita a by " " to inputfile
  for y = lbound(inputfile) to ubound(inputfile)
    if columnnumber = y then
      print #3 columnfile(x) + " "
    else
      print #3 inputfile(y)
    rem counter here to compare
    End if
  next
next

https://sourceforge.net/projects/dex-tracker
 




 1 Posts in Topic:
trying to load a row to a column using scriptbasic (or a better
edexter <Eric_Dexter@[  2007-07-24 07:29:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 4:38:07 CDT 2008.