Displaying 0 Digit Place Holders When Displaying a 3 Digit Variable
September 15, 2009 12:00 AM
Unfortunately, adding 00 to a number will still just yield that number.
But, you could define a new variable (I'll call it DisplayNumber). Create an action to Modify Variable. Set the value of DisplayNumber to be (space)00 IF the number is less than 10. You probably want another action to add (space)0 instead if the number is between 10 and 99.
Then you have another action following this action that adds the number to DisplayNumber. Since you forced DisplayNumber to be a string (by having a space), then Lectora concatenates the number to the end. The end result is that your number is actually four characters instead of three, but the first one is a space.
Kevin
Discussions have been disabled for this post