iscons
20th January 2015, 00:37
what is the extern function f0145m000.save() used for ?? BOI ?

for stpapi I would call the stpapi.save( "tcmcs0145m000", error ) ?



function extern long f0145m000.save( ref string error )
{
DLLUSAGE
Function to save an update/insert/delete in session tcmcs0145m000
ENDDLLUSAGE
return( stpapi.save( "tcmcs0145m000", error ) )
}

bhushanchanda
20th January 2015, 09:53
Hi,

Its a part of AFS Dll when you generate one for a particular session.

Instead of using it, you can directly use stpapi.* functions for handling AFS.

e.g. stpapi.put.field(), stpapi.save()

Go through the AFS forum to see the sample examples.

mark_h
20th January 2015, 15:38
Using ttstpcreatdll will generate a library of calls for a session that look like the one you posted. The only time I use it is when I want to see what calls it generates. Other than that I know use stpapi commands directly.