I�ve discovered what may be a bug in the �Caption� properties in LabVIEW 7.1. If it�s not a bug, it�s changed behavior from all previous versions back to 5.1.
It�s an easy one to reproduce. Drop any control or indicator on the panel, create a property node for it and set it to write to or read any of the �Caption� properties. If you are reading a property, you also need to create an indicator for the property. Create an indicator for the error out from the property node.
When you run the VI, you get error number 1320 which has a definition of �LabVIEW: In edit mode, LabVIEW cannot return a property for a control part that you have not yet created.� The error is not generated if you manually turn on the Caption either by right cli
cking and selecting Caption from the Visible menu or turn it on from the properties dialog. In all versions prior to 7.1, no error is generated. It seems in 7.1, since the caption has not yet been created, you cannot programmatically operate on it. In 7.0 and earlier, it must create the Caption for you and then operate on it.
I haven�t found a way around this without first manually turning on the Caption. Writing to the �Caption.Visible� property generates the error, which is what you would think to do first.
I�ve only tested this on WinXP.
Ed