Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Late Binding

Status
Not open for further replies.

lothos12345

Programmer
Mar 8, 2005
40
US
I have written a program in Visual Basic.NET. Recently one of the requirements is that Option Strict be activated. Now I am having a late binding issue that I cannot resolve. Below is my code:
************************************************************
Private Sub ContextMenu1_clicked(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim sendnoteid As Integer
Dim tParent As String
Dim tchild As String
Dim tnote As String
Dim i As Integer

Try
' get group and replace active row cell with menu option
tnote = UltraGrid1.ActiveRow.Cells(2).Value.ToString
tParent = sender.Parent.Text.ToString ***[Error]
tchild = sender.Text.ToString ***[Error]
'tchild = ContextMenu1.ToString

For i = 0 To UBound(afindtext)
If afindtext(i) = tParent & "*" & tchild Then
UltraGrid1.ActiveRow.Cells(2).Value = Replace(tnote, areplacetext(i), tchild)
i = UBound(afindtext)

UltraGrid1.ActiveRow.Cells(0).Value = True ' if checkbox not checked then check it
End If
Next

Catch ex As Exception
Call errhandler(ex.Message, ex.StackTrace, ex.Source)
End Try

End Sub
***********************************************************
The two statements with the Error next to them are the ones that are giving me the late binding issue. Please any help with this would greatly be appreciated.
 
Lothos, you may have more luck with this in forum855.

------------------------------------------------------------------------------------------------------------------------
"I am not young enough to know everything."
Oscar Wilde (1854-1900)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top