<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic passing a variable parameter to a single callback function in LabWindows/CVI</title>
    <link>https://ni.lithium.com/t5/LabWindows-CVI/passing-a-variable-parameter-to-a-single-callback-function/m-p/486813#M28126</link>
    <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I have 10 command buttons which is linked to a single callback function.But I need to pass a variable parameter for each command button.ie&amp;nbsp; command button1( var=1),command button( var=2) etc... How can I do it.&lt;/DIV&gt;
&lt;DIV&gt;Also I am going to create a thread everytime i click on command button.Is this a good idea to implement in the above mentioned way?&lt;/DIV&gt;
&lt;DIV&gt;Please reply..&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Mon, 05 Mar 2007 21:20:14 GMT</pubDate>
    <dc:creator>mymagic</dc:creator>
    <dc:date>2007-03-05T21:20:14Z</dc:date>
    <item>
      <title>passing a variable parameter to a single callback function</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/passing-a-variable-parameter-to-a-single-callback-function/m-p/486813#M28126</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I have 10 command buttons which is linked to a single callback function.But I need to pass a variable parameter for each command button.ie&amp;nbsp; command button1( var=1),command button( var=2) etc... How can I do it.&lt;/DIV&gt;
&lt;DIV&gt;Also I am going to create a thread everytime i click on command button.Is this a good idea to implement in the above mentioned way?&lt;/DIV&gt;
&lt;DIV&gt;Please reply..&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Mar 2007 21:20:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/passing-a-variable-parameter-to-a-single-callback-function/m-p/486813#M28126</guid>
      <dc:creator>mymagic</dc:creator>
      <dc:date>2007-03-05T21:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: passing a variable parameter to a single callback function</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/passing-a-variable-parameter-to-a-single-callback-function/m-p/486863#M28134</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;I could solve it by using&amp;nbsp; creating an array (arr) with known &amp;nbsp;values. and calling &lt;/P&gt;
&lt;P&gt;&amp;nbsp;SetCtrlAttribute( gPanelHandle,PANEL_COMMANDBUTTON_22,ATTR_CALLBACK_DATA,(arr+index));&amp;nbsp; &lt;/P&gt;
&lt;P&gt;for each command button.&lt;/P&gt;
&lt;P&gt;This will solve the problem.&lt;/P&gt;
&lt;P&gt;sorry for psoting it bfore thinkning&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2007 22:42:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/passing-a-variable-parameter-to-a-single-callback-function/m-p/486863#M28134</guid>
      <dc:creator>mymagic</dc:creator>
      <dc:date>2007-03-05T22:42:39Z</dc:date>
    </item>
  </channel>
</rss>

