bknight2602 Grandmaster Cheater Reputation: 0
Joined: 08 Oct 2012 Posts: 577
|
Posted: Wed Jul 12, 2017 9:24 am Post subject: A call that error reports as nil? |
|
|
I'm tweaking an old table that was created in the form design, not by code. There are a bunch of ListViews that are not visible stacked onto each other and the CheatPanel loads as designed.
The selection of a radio group button is designed to make the related ListView become visible, however I'm getting an error: attempt to call global 'WhichListViewShow' (a nil value)
This partial code is in this order, but for brevity sake only pertinent parts are shown.
Code: | function WhichListViewShow(sender)
...
end-function WhichListViewShow(sender)
...
function CERadioGroup1Click(sender)
indexname = radiogroup_getItemIndex(CheatPanel_CERadioGroup1)
h = radiogroup_getItems(CheatPanel_CERadioGroup1)
heroname = strings_getString(h, indexname)
WhichListViewShow()
WhichName()
form_hide(CheatPanel_CEListView1)
heroname = nil
CheatPanel_CERadioGroup1.setItemIndex(13)
end |
What do I need to change to make the subroutine work?
|
|