[Gambas-user] Format padding with spaces?

Benoit Minisini gambas at ...1...
Thu Sep 18 01:10:40 CEST 2008


On mercredi 17 septembre 2008, Ron wrote:
> Hi,
>
> I was a bit suprised to find out that Format$ doesn't support space
> padding like it does with zero's
>
> So:
> PRINT Format$(72.06, "  .##")
> PRINT Format$(2.05, "   .##")
> Prints:
>  72.06
>    2.05
>
> Any technical reason for this?
>
> Regards,
> Ron_2nd
>

I think this should be possible with that syntax:

  PRINT Format$(72.06, "######.##")

But no luck... I will implement them if it does not conflict with anything 
other in the Format$() code.

Regards,

-- 
Benoit Minisini




More information about the User mailing list