ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inconsistent naming when creating controls using ctrl+drag

Using LabVIEW 2021 (32-bit)

 

When creating a new control using "ctrl+drag" the control should get a number added to it, or incremented if there is already a space followed by a number at the end. However, I found (by accident) that if the control starts with a space, the numbers at the end are tacked on without a space a sometimes, which messes up the incrementing. I'll use underscores for spaces below.

 

Names of copied controls with starting control named "Numeric":

Numeric_2

Numeric_3

Numeric_4

 

Names of copied controls with starting control named "_Numeric":

_Numeric_2

_Numeric3

_Numeric3_2

_Numeric33

 

Maybe this shouldn't be fixed, because it alerted me to the fact that I had accidentally put a space at the beginning of the name, but I think it's still a bug 🙂

0 Kudos
Message 1 of 2
(1,185 Views)

(I think we can almost guess how the underlying code looks like 😄 )

0 Kudos
Message 2 of 2
(1,174 Views)