Hi, I've been trying to use chnset to change both the visibility and table number of gentable. I have just read that you can't change table number. That's fine, I've thought of a work around, but I'd like to be able to turn visibilty on and off. These are my code snippets:
gentable bounds(5, 555, 560, 150), tablenumber(6), identchannel("WaveViewer")
if (kOsc1Mode == 1) then
chnset "visible(0)", "WaveViewer"
kOsc1FTable chnget "osc1FTable"
SfTableString sprintfk "tablenumber(%i)", kOsc1FTable
chnset "visible(1)", "WaveViewer"
chnset SfTableString, "WaveViewer"
If I don't include the visibility settings above, then gentable is on. If I add the visibility settings above, then gentable is off. If I swap the settings shown above, then gentable is once again on. So it seems to take the initial value, but not any alterations. I started thinking it must of been processing my if statements at i-time only, but... If I add a printfs to the "else" section, I can see that SfTableString does definitely get updated at k-rate whenever i use my "osc1FTable" widget. Any thoughts?