| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Dear all, Suppose you are writing a few short programs that use, among others, an identical set of procedures. Is it possible with Logo to store these procedures in a library and import them whenever necessary without retyping or cut and paste them? Many thanks, Gian |
|
#2
| |||
| |||
| Gianluca7281@aol.com writes: >Suppose you are writing a few short programs that use, among others, >an identical set of procedures. >Is it possible with Logo to store these procedures in a library and >import them whenever necessary without retyping or cut and paste them? Yes. But the exact details depend on what version of Logo you're using. In many versions, you can enter the procedures, then use the SAVE command with a filename as input to save them: SAVE "MYFILE.LG Then you can get them back in your projects with the LOAD command: LOAD "MYFILE.LG |
|
#3
| |||
| |||
| On Jun 29, 8:37*pm, b...@cs.berkeley.edu (Brian Harvey) wrote: > Gianluca7...@aol.com writes: > >Suppose you are writing a few short programs that use, among others, > >an identical set of procedures. > >Is it possible with Logo to store these procedures in a library and > >import them whenever necessary without retyping or cut and paste them? > > Yes. *But the exact details depend on what version of Logo you're using. > In many versions, you can enter the procedures, then use the SAVE command > with a filename as input to save them: > * * * * SAVE "MYFILE.LG > Then you can get them back in your projects with the LOAD command: > * * * * LOAD "MYFILE.LG It would save you time if you created a file that loads all of the programs you have made, and then just load that file when needed. In FMSLogo, you can save a file with a name such as procedure.lgo. When FMSLogo does not have procedure defined, it will look in the current directory for a lgo file which has that procedure's name. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.