Message box

Hello

I hope someone can give me a hand with this...

I created an array of offset, where each position of the table corresponds to the offset for a channel. I have another array containing the names of channels.

Now I want a pop window mentioning the name of the channel on the left and his shift on the right (there are 36 shifts) so the user can check them.

So far, that I've created a loop For which opens a message box (using the 'msgboxdisp' function) with a single value in time, 36 times, which to be honest is an extremely poor solution.

If anyone can suggest something

Thank you

Hi Leillo,

Here is the approach of ambivalent MsgBox.

For iCount = 1 to 23
StatSel (iCount) = 'no '.
Next
StatSel (6) = 'yes '.
Dim offset (100)' define an array of 100 for the channel offset
Dim a, i, Msg
a = ChnNoMax'Calculates the number of channels
ICount = 1 to a ' loop to calculate the table of offsets
Call StatBlockCalc ("Channel", "1-", iCount)' compute channelwise, 1st row on the last, all channels (iCount represents "all channels.
offset (iCount) = statarithmean ' table of offsets
Next
for i = 1 to a
MSG = Msg & I & vbTAB & offset (i) & + "\n"
Next
Call msgboxdisp (Msg, "MB_OK", "MsgTypeWarning", 3)

MsgBox items won't be able to show all the 100, but you could filter only issue items / interesting and hide the others uninteresting.  Or you can go the road from SUDialog to pop up to a custom dialog box, you set for a table with 2 columns.

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

Maybe you are looking for