Leekhinc
12-22-2003, 11:16 PM
Does anyone know of any lisp example that can read a comma seperated variable (CSV) file and import them to OSD Annotation screen as a text?
I actually created some lisp code as below.
(with-open-file (a "d:/doc/test.csv"
:direction :input)
(loop while (setq b (read-line a) do
(sd-string-split b ",")
(am_create_text :go :ok :owner am_geo_set_domain :prompt-var "VIEW" :current-sheet "Act Sheet" :go :ok b )))
)
However, I could not really get it running because of some lisp error stating that the function sd-string-split is undefined.
The content of test.csv looks like below.
1,2,3,4
2,3,4,5
Does anybody has any clues?
Thanks in advance.
I actually created some lisp code as below.
(with-open-file (a "d:/doc/test.csv"
:direction :input)
(loop while (setq b (read-line a) do
(sd-string-split b ",")
(am_create_text :go :ok :owner am_geo_set_domain :prompt-var "VIEW" :current-sheet "Act Sheet" :go :ok b )))
)
However, I could not really get it running because of some lisp error stating that the function sd-string-split is undefined.
The content of test.csv looks like below.
1,2,3,4
2,3,4,5
Does anybody has any clues?
Thanks in advance.