Discussion of Inner Space
Moderators: Lavish Software Team, Moderators
-
mistahmikey
- GamingTools Subscriber
- Posts: 29
- Joined: Wed Jun 30, 2010 7:48 am
Post
by mistahmikey » Mon Mar 17, 2014 10:35 pm
I get the following output:
Code: Select all
In TestReturn
return: No return object to initialize with given value
Dumping script stack
--------------------
-->C:/Program Files (x86)/InnerSpace/Test.iss:5 TestReturn() return "Some Text"
C:/Program Files (x86)/InnerSpace/Test.iss:10 main() echo ${LavishScript:ExecuteAtom[TestReturn]}
1.97
From the following script:
Code: Select all
atom TestReturn()
{
echo "In TestReturn"
return "Some Text"
}
function main()
{
echo ${LavishScript:ExecuteAtom[TestReturn]}
}
Would appreciate it if someone can explain what I am doing wrong.
-
Lax
- Owner
- Posts: 6634
- Joined: Fri Jun 18, 2004 6:08 pm
Post
by Lax » Tue Mar 18, 2014 6:48 am
I will have to look into why that is crashing the script, but just set up an objectdef.
Code: Select all
objectdef myobject
{
member TestReturn()
{
return "Some Text"
}
}
function main()
{
variable myobject MyObject
echo ${MyObject.TestReturn}
}