Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Private Sub erasestruct(obase As BaseExportFile, obaseRptFile As BaseExportFile, odetails As ProcessExportDet)
Dim objContext As COMSVCSLib.ObjectContext
On Error GoTo ErrHandler

Set objContext = GetObjectContext()
obase.bProcessData = False
obase.bProcessDesign = False
obase.EndTime = ""
obase.iprocesscnt = 0
obase.StartTime = ""
Erase obase.Processes
obaseRptFile.bProcessData = False
obaseRptFile.bProcessDesign = False
obaseRptFile.EndTime = ""
obaseRptFile.iprocesscnt = 0
obaseRptFile.StartTime = ""
Erase obaseRptFile.Processes
odetails.TableAsso = ""
odetails.StateInfo = ""
odetails.FormAsso = ""
odetails.FormDefs = ""
odetails.ProcessAttributes = ""
odetails.ProcessDefs = ""
odetails.ProcessInfo = ""
odetails.sData = ""
odetails.processname = ""
odetails.ProcessAlerts = ""
odetails.ProcessExpire = ""
odetails.ProcessHierachy = ""

If Not (objContext Is Nothing) Then
objContext.SetComplete
End If

Exit Sub
ErrHandler:
If Not (objContext Is Nothing) Then
objContext.SetAbort
End If
End Sub
Posted
Updated 15-Dec-10 3:22am
v2
Comments
Abhinav S 15-Dec-10 9:22am    
Code blocks added.
Abdul Quader Mamun 15-Dec-10 9:53am    
You need to learn C#.
Henry Minute 15-Dec-10 18:24pm    
I don't know why people are down voting your question. I have tried to compensate.

Good explanation regarding this topic Upgrading VB6 to C#[^] & Leaving VB6 Behind[^]

Fortunately you can get VB.NET to C#.NET converters easily. But VB6 to C# is impossible to find. Also it will not migrate things completely so you need to do manual things. So better you may convert VB6 to VB.NET & then convert into C#. That's all.

VB6 Migration[^]

For .NET language migrations[^]
 
Share this answer
 
It is not about knowing a "process" it is about knowing the syntax for the C# language. You can find good, basic tutorials on the C# language at these locations:

http://www.csharp-station.com/[^]

http://msdn.microsoft.com/en-us/library/aa288436(v=VS.71).aspx[^]
 
Share this answer
 
v2
Comments
Dalek Dave 15-Dec-10 18:51pm    
Fair enough comment.
There are many VB to C# translators on the internet. I do not know if any of them handle VB6 code though.

Try googling for vb6 to c# translator
 
Share this answer
 
Comments
Dalek Dave 15-Dec-10 18:52pm    
.Net to .Net is not so hard, but DinoCode is not readily convertable.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900