BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

(seen here)

 

To append four DBLs to a file, we apparently need to take each and format it as integer (lossy!) then take the first one, bult it into a 1D array of strings with one element, then use insert into array to append the other strings. I have the nagging feeling that this could be simplified. 😄

 

 

altenbach_0-1739898279341.png

 

 

 

0 Kudos
Message 2601 of 2,604
(334 Views)

The lossy factor is a pickle, if you want the file to be readable...

 

Also, this file is very dangerous if you want any chance of using the application globally. Half the world uses "," as separator, the other ".". Better make sure what you store uses ".", and what's shown uses what the user prefers...

0 Kudos
Message 2602 of 2,604
(312 Views)

Just the tip of the iceberg (that sank the Titanic!)

 

(seen here, but also posted here)

 

Basically, we have long sequences with interactive greedy loops in several frames, and even a frame where many terminal (controls and indicators) are wired to their own local variable. Must be a text programmer! 😄

 

altenbach_1-1743873765290.png

0 Kudos
Message 2603 of 2,604
(123 Views)

@altenbach wrote:
 
We have an existing 2D array and need to initiaize an array with the same size, containing all zeroes.
 
We can do it the hard way or the easy way.
 

 


Somebody just kudoed this old post here and it is probably important to mention that this method is only fully safe for integer arrays. For example if the input is DBL and contains NaN, they would remain NaN and could cause unexpected results downstream.

 

0 Kudos
Message 2604 of 2,604
(38 Views)