Launch another app from my standalone
Phil Davis
revdev at pdslabs.net
Thu Sep 3 03:17:41 EDT 2009
Adrian,
Are you familiar with Rev's debugger? This might be a good time to use
it. If it were me, I would set a breakpoint on the line before the one
where you call getPathToFile(). Then you will be able to see more
clearly the state of the various data items. That may tell you what's wrong.
HTH -
Phil Davis
Adrian Williams wrote:
> Phil,
> Now have slightly different error:
>
> Type Commands: missing ','
> Object OK
> Line FUNCION getPathToFile pFile
> Hint pFile
>
> but there is only one parameter so does not require a comma.
> Adrian
>
>
> On 2 Sep 2009, at 18:26, Phil Davis wrote:
>
>> So... maybe we should start at the beginning. The object in which the
>> error occurred is apparently named "OK". What does the code of that
>> object look like?
>>
>> Phil Davis
>>
>>
>>
>> Adrian Williams wrote:
>>> Phil,
>>> Already tried just 'end' - it gets the same error!
>>> Adrian
>>>
>>> On 2 Sep 2009, at 17:13, Phil Jimmieson wrote:
>>>
>>>> Hi Adrian,
>>>> at the end of the function definition, you only put "end" and the
>>>> name of the function - you don't include the parameter list.
>>>>
>>>> On 2 Sep 2009, at 17:10, Adrian Williams wrote:
>>>>
>>>>> Len or anyone else have an answer to this,
>>>>>
>>>>> 'end FUNCTION' gives the error:
>>>>>
>>>>> Handler: error in command
>>>>> Object OK
>>>>> Line FUNCTION getPathToFile pFile
>>>>> Hint FUNCTION
>>>>>
>>>>> On 30 Aug 2009, at 17:24, Len Morgan wrote:
>>>>>> I"m hoping Trevor won't mind me sharing this little snippet of code:
>>>>>>
>>>>>> FUNCTION getPathToFile pFile
>>>>>> put the filename of this stack into the theFile
>>>>>> set the itemdelimiter to slash
>>>>>> put pFile into the last item of theFile
>>>>>> return theFile
>>>>>> end FUNCTION getPathToFile
>>>>>>
>>>>>> --To use:
>>>>>> put getPathFile("My App.exe") into tFile
>>>>>> launch tFile
>>>>>>
>>>>>> That should do it.
>>>>>>
>>>>>> len morgan
>>>>>
>>>>> Ideas?
>>>>> Thanks,
>>>>> Adrian
>>
>> --
>> Phil Davis
>>
>> PDS Labs
>> Professional Software Development
>> http://pdslabs.net
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
--
Phil Davis
PDS Labs
Professional Software Development
http://pdslabs.net
More information about the use-livecode
mailing list