LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Revision control

Hi,

 

With in the main UIR I would like to display, on request, the revision of the UIR in use and the revision of the code behind the UIR.

 

The use of a button, drop down or a Tab control to add into an existing project.

 

Both these revisions I want to control each time I make a change to either the UIR or the code.

 

Is it possible to have the revision number held in the UIR and in the code as these two will not always be the same?

 

I would also like to add a short note as to what the last change was to up the revision number.

 

Thanks for the help

Simon

0 Kudos
Message 1 of 3
(3,125 Views)
Simon,

One possibility would be for you to place a hidden control in your .UIR (with the "initially hidden" option enabled). The control could be a string control or a numeric control, depending on the format of your version. Then you can set the value of that control to be the version, and whenever you want to display it at runtime, just read it from the control using GetCtrlVal.

Luis

0 Kudos
Message 2 of 3
(3,106 Views)

Luis,

 

The simple ideas are good.

 

I now have a working solution I just need a nudge to get me going.

 

Thanks for the help

 

Simon
0 Kudos
Message 3 of 3
(3,094 Views)