I want to fill a list_box with the name of a file open after a hide button on dcl.
after I choose the file, I want to display the file name in the dcl but I have no idea how to convert that name to a string
(I'm following an afralisp tutorial as is, 'cause I have no idea by myself)
(setq thelist '(""))
...
setup dcl dialog
...
(start_list "csv_ensayes")
(mapcar 'add_list thelist)
(end_list)
......
(setq flag (start_dialog))
(if (= flag 4)
(progn
(setq fo (open (getfiled "Select CSV File" "" "csv" 16) "R"))
(setq thelist (list "file name: " fo))
);progn
);
this is the error I get:
; error: bad argument type: stringp #<file "F:\\the route of the file\\the file.csv">