I know it's not pretty but it works for me. If anyone knows a more clever way to deal with this please speak up. Perhaps dialogfileopen should just return a backslashed string where needed. to aaa closeall make "file_name long_dialogfileopen "c:\\my\ documents\\*.txt openread :file_name setread :file_name repeat 2 [show readlist] closeall end to long_dialogfileopen :in_name localmake "out_name dialogfileopen :in_name localmake "fix_name item 1 :out_name repeat (count :out_name) - 1 [make "fix_name (word :fix_name "\ item repcount+1 :out_name)] output :fix_name end Benjamin Davenport wrote: > > How do I get Logo to load a file selected by the 'dialogfileopen' > command in Win95? > > Ordinarily I would not bother you with 'how-to' questions, but I think > the answer might have something to do with a bug. I have tried several > ways to get the output of 'dialogfileopen' into a word which (I think) > 'setread' needs, but I have failed so far. I am using version 6.3h > under win95b. The file I am trying to get to is in a directory that > contains a space, which seems to be causing problems. Setread by itself > works fine (the data file is in the directory that the .LGO file is in, > so Logo automatically assumes that directory is the base which avoids my > problem, but I want to add error handling in case the file is missing, > and that I cannot get to work.) > > Also, I noticed that you mentioned adding menus. Would that be to the > 'windowcreate' set of commands? Please do. I have a project in the > works (over half-done) that is just begging for menus. I don't have > enough space for that many buttons otherwise. > > - = - = - = - = - = - = - = - = - = - = - = - = - > Ben Davenport > bsdavenport@students.wisc.edu -- =============================================================== George Mills (mills@softronix.com) http://www.softronix.com/ The www page contains some very powerful educational software. Our single most important investment is our kids. --------------------------------------------------------------- Please post messages to the Logo forum to logo-l@gsn.org. Mail questions about the list administration to logofdn@gsn.org. To unsubscribe send unsubscribe logo-l to majordomo@gsn.org.
Global SchoolNet Foundation -
Linking Kids Around the World!
Copyright GSN - All Rights Reserved
- Comments
& Questions
Visit GSN's
Global
Schoolhouse for more exciting learning resources!
Search our Site
-
Home