How to retain the Object ID as reference type?
Hi All,I have a small query.I have the following function definition in VB:dim Object_ID as Integer = 0public function Test1()errStatus = LL_CreateObject(Session_ID, Volume_ID, Parent_ID, LL_OBJECTTYPE, Object_Type, DocName, objInfo)Status = LL_AssocGetInteger(objInfo, "ID", Object_ID)end functionThe newly created object's ID is copied into "Object_ID".The definition of LL_AssocGetInteger(objInfo, "ID", Object_ID) says that the parameter "Object_ID is of reference type. So it means that we can use this variable in other custom functions without reinitializing it. for example as below:public function Test2()errStatus = LL_CopyObject(Session_ID, Volume_ID, Object_ID, DstVolume, DstObject, LL_COPY_CURRENTV, DocName, Obj_Info)end functionNow, if i have to convert the entire above code in VB.NET we use as follows :public function Test1()objInfo = New LLValue().setAssocNotSet()errStatus = docInfo.CreateObject(Volume_ID, Parent_ID, LAPI_DOCUMENTS.OBJECTTYPE, Object_Type, DocName, objInfo)Object_ID= objInfo.toInteger("ID")end functionNow my query is can we use "Object_ID" as reference type in other custom defined functions in VB.NET ( below example)just like its used in the VB part?public function Test2()errstatus=docInfo.CopyObject(Volume_ID,Object_ID,DstVolume.....)end functionDoes the above Copy function take the Object_ID as 0 or the current value of Object_ID ?If it takes 0, can u please let me know as how to retain the newly created id??Regards,