10-13-2005 09:40 AM
10-14-2005 11:45 AM
Tom,
First of all, just a friendly reminder that if you post to the correct thread, you're much more likely to get the best answer quickly. The DIAdem board can be found here.
To address your question though. The problem with the statement chnnostr = "chnno1, chnno2, chnnomax", is that since chnno1, etc. are within quotes, they are being looked at literally as the string "chnno1" instead of the channel number itself, which is what you are looking for. So, to fix that, all you have to do is concatenate your string like this:
Call Chnget (3,0,channels)
chnnostr = ChnNo1 & "," & ChnNo2 & "," & ChnNo3
Call StatBlockCalc("channel","1-10",chnnostr)
I tried this code on this side and it worked perfectly. Let me know if you have any other questions. Thanks and have a good one.