LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when setting TabCaption programmatically

In a Tab Control I want to set the Property 'TabCaption' of a single page programmatically. When doing that I get the error 1077 (Invalid property value). On the other hand I can read the property out correctly.

The really strange thing is, that with one Tab Control I get the error and with another one I don't get it. The one which works was originally created with LabVIEW 8.0. The one which fails was created with 8.20. I attached a VI with the two cases.

Thanks for any help!
Dave
0 Kudos
Message 1 of 8
(3,635 Views)
Dave,

the issue is created because the tabs are initally configured to "Make Page Caption Match Label". You can "unset" this option by rightclicking on the register on the frontpanel, select Advanced and remove the mark in the appropriate line....


hope this helps,
Norbert B.
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 8
(3,629 Views)
Hi Norbert

Thanks for the tip, you helped me a lot!

cheers,
dave
0 Kudos
Message 3 of 8
(3,625 Views)

Hi Norbert,

 

I've tried this at my end still I am getting this error.

 

I've attached the code.

 

Warm Regards,

Samarth K.

0 Kudos
Message 4 of 8
(141 Views)

Please convert your VI to LabVIEW 2021 or an earlier version. Otherwise, I cannot help you with debugging.

 

In the meantime: The attached VI show how it works.

Message 5 of 8
(120 Views)

@SamarthKansal wrote:

Hi Norbert,

 

I've tried this at my end still I am getting this error.

 

I've attached the code.

 

Warm Regards,

Samarth K.


The "Make Page Caption Match Label" applies to individual pages.  In your code, the 1st page has that property set to FALSE, and the 2nd page has it set to TRUE.

0 Kudos
Message 6 of 8
(85 Views)

Hi Martin,

 

Thanks for your VI!

 

Adding the disconnect property worked.

0 Kudos
Message 7 of 8
(57 Views)

Thank Paul,

 

I tried individually modifying the pages through property node with independent label property and it worked. I'll try your method as well.

0 Kudos
Message 8 of 8
(56 Views)