Chasing run errors

Hi,

I am presently chasing a run time error that I know why its happening but don't know how to fix. My question is this: There is a function in main called "showscreen", main calls several other modules and one of these modules wants to call that function "showscreen", how do I do this?

1
2
3
4
5
6
7
Runtime error
        ...ons/CoronaSDK/SampleCode/Interface/TabBar/iphone.lua:119: attempt to call global 'showScreen' (a nil value)
stack traceback:
        [C]: in function 'showScreen'
        ...ons/CoronaSDK/SampleCode/Interface/TabBar/iphone.lua:119: in function '_onRelease'
        ?: in function <?:887>
        ?: in function <?:215>
views:1329 update:2011/10/25 9:10:48
corona forums © 2003-2011