Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Retrieving CreateDate from object info...
Ben_Vosloo_(elbeadmin_-_(deleted))
Hi,I have the following VB code sample...'************************************************Dim lTemp As LongDim lDate As LongllStatus = LL_ValueAlloc(lDate)llStatus = LL_ValueSetDate(lDate, 1)'All other variables are declared elsewhere...'Get a single record from a list of items returned by LL_ListObjects()llStatus = LL_TableGetRecord(tObjs, 0, tObj)'Retrieve the CreateDate from the recordllStatus = LL_RecordGetDate(tObj, "CreateDate", lDate)'Try get a value from the date into a long (as the guide describes)llStatus = LL_ValueGetDate(lDate, lTemp)'At this point my program exits with a terminal error, and it crashes my VB... '************************************************I have multiple ways of doing this and they all have the same result: crashing my development environment...My question is, how do I get a date like above, and how do I translate it into something readable?Many thanks in advance,Joe Takacs
Find more posts tagged with
Comments
***_****_(citlon01admin_-_(deleted))
Anytime Vb crashes on me when working with the SDK, it is usally related to the field not define with LL_ValueAlloc.Try adding the line llstatus = ll_valuealloc(lTemp)before the ll_valuegetdateThe following is the alternative was of doing the function.Deprecated Record Management Functions Appendix A also lists LAPI functions that have been deprecated in the Livelink 9.x. Record management functions operate on Record value objects to set and retrieve values. You can still compile applications that contain these functions, but their use is not recommended as they may be removed from a future release of the Livelink API.Deprecated Function Recommended Alternative LL_RecordGetDate LL_RecordGetDateEx (Value API) LL_RecordSetDate LL_RecordSetDateEx (Value API)