((3) 1 of 25) hello world

bi=: '' conew 'biffbook'               NB. create an workbook
  writestring__bi 1 3 ; 'hello world'    NB. write text in a cell: rowcol ;
text (rowcol is 0-based)

  writestring__bi 'C4' ; 'hello Tara'    NB. cell in "A1" mode

  save__bi jpath '~temp/tara1.xls'       NB. save to a file

  destroy__bi ''                         NB. destriy workbook object, NOT
the Excel file
1


-------------------------------------------------------- might change to

bi=: '' conew 'biffbook'               NB. create a workbook
  writestring__bi 1 3 ; 'hello world'    NB. write text in a cell: rowcol ;
text (rowcol is 0-based)
                                                    NB. "hello world" is
written in row 2 col 4
  writestring__bi 'C4' ; 'hello Tara'    NB. cell in "A1" mode

  save__bi jpath '~temp/tara1.xls'       NB. save to a file

  destroy__bi ''                         NB. destroy workbook object, NOT
the Excel file
1
    NB. in order to compare with the new grid

  load 'grid'
  a=.7$a:
  a=.a,<'hello world'
  a=.a,6$a:
  a=.a,<'hello tara'
  (1;'A') grid 4 4$a


--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: [EMAIL PROTECTED]
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
         /|_      .-----------------------------------.
        ,'  .\  /  | Með léttri lund verður        |
    ,--'    _,'   | Dagurinn í dag                     |
   /       /       | Enn betri en gærdagurinn  |
  (   -.  |        `-----------------------------------'
  |     ) |        (\_ _/)
 (`-.  '--.)       (='.'=)
  `. )----'        (")_(")
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to