Problem with Propeller tutorial lesson 7
dragonvet
Posts: 17
I'm having trouble with the code for Spin Lesson 7
in the OBJ block
what does
"(Ch3-Ex07)-Output"· mean?
when I try to compile it keeps saying that file isn't found
Thanks in advance,
Rich
in the OBJ block
what does
"(Ch3-Ex07)-Output"· mean?
when I try to compile it keeps saying that file isn't found
Thanks in advance,
Rich
Comments
to use a file that has to either be in the Propeller tool directory (folder) or in the same folder as
the file that uses it.
·
Example
Obj
··· MyObject: "ObjectFileName"
This is telling Spin to use the File named ObjectFileName.Spin and it gives it the Alias MyObj. The file ObjectFileName.Spin
has to be residing in the same directory as the file that has the above code. OR....in the directory where the Propeller Tool
exe resides in.
Lets assume that the· file ObjectFileName.Spin has a few functions (methods) and lets say one of them is called
·· Pub DoSomething(someparameter)
······ 'code
then you would use this function (method) within the top-level-0bject (calling program) this way
····· MyObject.DoSomething(somevalue)
or if the method returns a value then
··· somevar := MyObject.DoSomething(somevalue)
I hope that helps.....if you need more then please let me know what lessons you are referring to....do you have a link?
·
Samuel
Post Edited (SamMishal) : 7/11/2009 5:13:05 PM GMT
Example: C:\Program Files\Parallax Inc\Propeller Tool v1.2.5\Examples\Manual
In Ver1.2.6 version of the tool, the object is just called "output.spin" and is located in:
C:\Program Files\Parallax Inc\Propeller Tool v1.2.6\Examples\Help\Spin Tutorial\Exercise 07-1
Hope that helps.
Jim
It seems this was an interim notation that crept into public use.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ain't gadetry a wonderful thing?
aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan
Post Edited (Loopy Byteloose) : 7/11/2009 3:53:39 PM GMT
are these hovercrafts sitting in your driveway????? (in your picture)
1990 Hoverdynamics RX2000 Cuyuna 430
1987 Scat I Rotax 503
1988 Scat II Rotax 503
Hover Club of America Member·#5812
@dragonvet...was there enough information provided here to answer your question?
WAYYYYYY COOOL.....are they 1 seater or two?.....is it fun...I bet....
Way cool ...I wish....
Thanks again,
Rich
@SamMisal The red and white crafts are two seater and the blue craft is one seater, set up in racing configuration.
As Loopy Byteloose noted, that is indeed an artifact left from moving the tutorial from the printed manual to the Help.· I will make a note to correct it the next time I update the Help.
Just FYI, if you click on the little Propeller Hat icon above the code listing on that page of the tutorial, the Spin file will open in a new tab in the Propeller Tool. The error was not included in the actual Spin file. An anti-reward for those who actually hand-enter the code!
-Stephanie Lindsay
Editor, Parallax Inc.