What is
ObjectContext Object
in
VB.Net or
VB6.
What is
GetObjectContext
function used for.
Can someone provide any concrete example of its use.
The reason I am asking this question is that I am in the process of converting a COM object written in VB6 to VB.Net.
There was some code using
ObjectContext
which did not make any sense.
Here is the code..
///////////////////////////////////////////
Dim objvar As String
Set objCtx = GetObjectContext()
objvar = "HRA.NQAGGR"
Set objscrid = CreateObject(objvar)
funcnretval = CallByName(objscrid, screenID, VbMethod, uparray, downarray, tpcode)
If Not objCtx Is Nothing Then
objCtx.SetComplete
End If
////////////////////////////////////////
As you can see in the code, the objectcontext is created and then SetComplete without actually being used. It does not make sense. I was wondering whether I could just ignore this code in the new Vb.Net conversion of the COM object.