- Code: Select all
double test1 = 12.123456789
double test2 = test1.ToString("F4");
double test1 = 12.123456789
double test2 = test1.ToString("F4");
double test1 = 12.123456789
string test2 = test1.ToString("F4");
Vmax549 wrote:Dan , THAT was a simple solution and it writes ok to a dro.
Dezsoe, question?? I was told long ago to write to a DRO that you used a double value only.
You wrote to it using a String Value. Is there any drawbacks to using a string value ?? Teh manual sorta warns against it.
I thought SetfieldText() was only to write to a field containing text ??
(;-) TP
Public Sub Textfieldtexttyped_event(labelnumber As Integer, Ismainscreen As Boolean, text As String)
If Ismainscreen Then
If labelnumber = 21000 Then
Dim str As String = UC.Getfielddouble(True, labelnumber).ToString("F4")
UC.Setfieldtext(True, str, labelnumber)
End If
End If
End Sub
Return to Ask a question from support here
Users browsing this forum: No registered users and 18 guests