LCD fixed length string

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
myval
Flowcode V4 User
Posts: 40
Joined: Sun Feb 22, 2009 6:54 am
Location: Sydney
Has thanked: 2 times

LCD fixed length string

Post by myval »

Hi,

I might have strange one (again :) ). I have int lets say from 0 to 20000 when I convert this number tostring how do I get " 0" or "0 " instead of "0" so the resulting string is always 5 digit long.

attached is the pic of three posible cases. When you go from 8 to 12345 bla bla gets shifted out of sight (this is not a problem, nothing long there) but when I go from 12345 to it just overwrites first digit (sorry if the bla bla is not at the end, made mistake there).
Not sure If I explaned my self well!!!
It might be an easy fix I just do not see easy solution.
Attachments
LCD.jpg
LCD.jpg (11.88 KiB) Viewed 2696 times

Post Reply