wait for (ABMShared.AddAttachment1(FileName,page.ws.Session, strattachsource,stageid,False)) Complete(attachmentid As List)
Public Sub AddAttachment1(filename As String,sss As HttpSession,strattachsource As String, stageid As Int,isnew As Boolean) As ResumableSub
Wait For (GetAttachmentVersion1(recordid,strfilepath,filename)) Complete(versionnumber As Double)
Log("versionnumber1 " & versionnumber) ' << this is NOT logged
End Sub
Sub GetAttachmentVersion1(recordid As Int,filepath As String,filename As String) As ResumableSub
Dim versionnumber As Double = 0
Log("versionnumber " & versionnumber) ' << this is logged
Return versionnumber
End Sub