andy999 0 Newbie Poster

Hello all,
I am currently using excel vba to create Broker.Application which helps to transfer the data from a text file i.e opfile.txt to a charting programe, so that the chart shows the data in continuous way.
Here is the vba code:
Sub testAB()
On Error Resume Next
Set ab = CreateObject("broker.application")
FName = frmdb.Textpath.Text & "\opfile.txt" 'Cells(1, 2) & "\opFile.txt"
'fname = fPath & "\opFile.txt"

rc = ab.Import(0, FName, "idclose.format")

If rc = 0 Then

ab.RefreshAll
'Debug.Print "RC " & rc
ab.Log 2
End If
Set ab = Nothing

End Sub
......
ab stands for Amibroker.I coudnt get so far what is rc. stands for.
Now My question is:
Can I be able to create the same Broker.application in VB6 while running my software. Can this rc be able to import the format file and can this be able to refresh ab while running the software.
I will be obliged if someone could help me on this point.
Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.