02-21-2024, 03:07 AM
(02-21-2024, 12:09 AM)Kernelpanic Wrote:Quote:For formatting numbers, you can use __UI_StrUsing$ (format$, value##). format$ uses the same format as PRINT USING.I am not getting anywhere with this. It has nothing to do with the "Format$" as I know it from VB, and I didn't find anything about it in the Wiki. And "Print Using", how should I put that in there?
VisualBasic 5.0
Code: (Select All)
txtProzenthoehe.Text = Format$(Rabattaufschlag, "##.00")
Is there an explanation somewhere for using __UI_StrUsing$ (format$, value "####") as for "Control"? I did not find anything on the internet either. Are there really no instructions for this?
So, I changed the result numeric text box to a plain text box and then made the following change in Prozenthoehe.bas.
Code: (Select All)
Text(ProzentaufschlagTB) = __UI_StrUsing$("###.##", ((Control(VerkaufspreisTB).Value - Control(EinkaufspreisTB).Value) / Control(EinkaufspreisTB).Value) * 100)