Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


OLE and Create Object

Keywords:    createobject objectcreate objectopen

Question:

Here is an example of code used with VB to access the ACT! ole object. I would like to be able to use WinBatch instead of VB.
	dim objData as object
	Set objData = CreateObject("ACTOLE.DATABASE")
	objData.Open dbName

	Dim tableObject As Object
	Set tableObject = objData.CONTACT

	tableObject.MoveFirst

	; get the name of the contact
	dim strOutput as String
	strOutput = tableObject.Data(CF_Name)

	set tableObject = Nothing

	objData.Close

	set objData = Nothing
I think I use ObjectOpen command, but I am not sure how to set the table object (or any other object). This may not be very practical, but it does look like it has potential.

Answer:

WinBatch still cannot do a CreateObject. Just an ObjectOpen. We're looking into it.
Article ID:   W13665
Filename:   OLE and Create Object.txt