09-12-2009 06:25 AM
Does anybody know how to set the size of a string constant?
Ton
09-12-2009 09:22 AM
Are you refering to the number of characters the string contains or the size the constant takes on the screen?
For the first there is a private property Preallocated Length, the second I do not think there is any way to do it.
Rolf Kalbermatter
09-12-2009 01:24 PM
It's the latter, I am trying to shrink a long string constant to pre-defined size.
Ton
09-14-2009 12:26 AM
09-14-2009 04:16 AM
Thanks Rolf,
too bad it doesn't work:
Somewhere deep in LabVIEW a manager is in place and he is not supported.
Ton
09-14-2009 04:21 AM
A well, it was worth a try but I have to admit I'm positively surprised this returns an error and not just crashes . As far as I know it does call LabVIEW internal C functions. They might be checking specifically for a certain type of object class such as all types of Front panel controls, not accounting for the possibility of diagram constants, which problably would work too, as I would assume their object method table to be similar to the FP controls, for these basic object operations.
Rolf Kalbermatter
09-14-2009 08:12 AM
There is always the standard hack method of resizing anything (I used it for growable nodes fairly extensively, and still do for some of them).
Yes, this is a horrible hack, but it will get you there until we fill all the holes in the UI. Thanks for finding another one!
I have submitted CAR 186942 for this issue.