M
Miro
Hi,
During one of my books chapters there is an event created in the form load
with:
AddHandler tbName.DataBindings("Text").Format, AddressOf FormatName
and then the sub underneith it is as follows:
Private Sub FormatName(ByVal sender As Object, ByVal e As
ConvertEventArgs)
If tbName.Tag <> "PARSE" Then
e.Value = CType(e.Value, String).ToUpper() 'My Question is with
this line right here
End If
tbName.Tag = "FORMAT"
End Sub
===
Basically its showing how to use the format of the binding to upper the name
of the database.
I was looking at the e.value = ctype line and replaced it with this:
e.Value = e.Value.ToString.ToUpper
I'm just wondering if there really is a difference between my line of code
vs using the CType function.
I'm assuming both lines would always give out the same results and they
really are identical.
Thanks,
Miro
During one of my books chapters there is an event created in the form load
with:
AddHandler tbName.DataBindings("Text").Format, AddressOf FormatName
and then the sub underneith it is as follows:
Private Sub FormatName(ByVal sender As Object, ByVal e As
ConvertEventArgs)
If tbName.Tag <> "PARSE" Then
e.Value = CType(e.Value, String).ToUpper() 'My Question is with
this line right here
End If
tbName.Tag = "FORMAT"
End Sub
===
Basically its showing how to use the format of the binding to upper the name
of the database.
I was looking at the e.value = ctype line and replaced it with this:
e.Value = e.Value.ToString.ToUpper
I'm just wondering if there really is a difference between my line of code
vs using the CType function.
I'm assuming both lines would always give out the same results and they
really are identical.
Thanks,
Miro