>hi
>a simple question, i want to display in a label a decimal number, i declared that
>number as double and put set decimal to 2 in the load method, but the label dont display the decimal just the aprox. integer value
>how can i fix this?
You have to convert to text, I think. You aren't perchance using str(MyNumber)? That would strip the decimals. You might use any of the following for ThisForm.MyLabel.Value:
alltrim(str(MyNumber, 2))
alltrim(transform(MyNumber, "###,###.##"))
alltrim(padl(MyNumber))
transform(MyNumber)
HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)