Reply To: Trimming empty rows from array

#3792
Balázs Fürtön
Participant

Initially what I’m doing is loading the wall skin list values to a new array: originally it is stored in a fixed one with ?? rows. I usually have less than that, and when I want to display elements from the original, I only want to see the filled ones.

So to trim, I compare the values against zero. When it is not zero, the record gets copied – this is where the problem lies: I’m comparing a real number against zero. On the Achicad-Talk forum I found threads regarding this problem, and it seems there is not much to do about it, rather than eliminating exact comparisons and to replace them by a “smaller than” relation.

http://archicad-talk.graphisoft.com/viewtopic.php?t=4677&postdays=0&postorder=asc&&start=0&sid=21bf9a70de2609686e1f7e68602c9d41

I’m not that comfortable with programming, so I am not sure whether this is the way to go, or a different approach is more sufficient.

Edit: Probably I could use a “while” statement with the original array, with a “bigger than” comparison.

Balazs Furton

Student of architecture @ Budapest University of Technology and Economics