LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a better way to do the following with strings....

I am concatenating the string because it acts as a terminal, like tera term or putty.  And I force it to scroll as far to the bottom as possible.  I don't see anything necessarily wrong with this solution, but I wonder if there's a more elegant way.  Like... a right click setting change in the string indicator.

DailyDose_0-1674657002686.png

 

0 Kudos
Message 1 of 12
(1,670 Views)

I'm going to comment that (per the detailed help) setting that property to a negative number will set the scroll position to the bottom.  But other than that, that's what I do.  But I hope someone else has a more elegant solution.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 2 of 12
(1,664 Views)

I will chime in and also admit that is how I code it up as well.

I did not know about the -1 trick. Thanks for the tip. 👍

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 3 of 12
(1,657 Views)

I didn't know that about the (-1) trick either.  Guess I should read the detailed help for all properties and not just some...

0 Kudos
Message 4 of 12
(1,648 Views)

@billko wrote:

I'm going to comment that (per the detailed help) setting that property to a negative number will set the scroll position to the bottom.  But other than that, that's what I do.  But I hope someone else has a more elegant solution.


So I guess this actually gets into a debate of what is elegant.  The input is an unsigned 32 bit.  So sure, a -1 for a signed 32 bit gives you exactly what I have unsigned.  So the question of elegance becomes - do we like coercion dots, or do we like big fat numbers?

Message 5 of 12
(1,641 Views)

@DailyDose wrote:

@billko wrote:

I'm going to comment that (per the detailed help) setting that property to a negative number will set the scroll position to the bottom.  But other than that, that's what I do.  But I hope someone else has a more elegant solution.


So I guess this actually gets into a debate of what is elegant.  The input is an unsigned 32 bit.  So sure, a -1 for a signed 32 bit gives you exactly what I have unsigned.  So the question of elegance becomes - do we like coercion dots, or do we like big fat numbers?


Ha! Good point.

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 6 of 12
(1,623 Views)