Venice
Entry::GetPrevTickInfo
 
Gets the previous tick information.
 
VARIANT_BOOL GetPrevTickInfo (
    VARIANT* pvSession,
    VARIANT* pvSequence,
    VARIANT* pvTickDate,
    VARIANT* pvTickUser,
    VARIANT* pvAmountDetC,
    VARIANT* pvAmountDosC,
    VARIANT* pvTickSysNums
)
 
Parameters
pvSession
[in,out] The session of which you want to get the previous tick information.
In: A LONG containing the tick session number of the tick session returned by GetLastTickInfo.
Out: Returns a VARIANT, subtype LONG, containing the tick session number of the previous tick session.
pvSequence
[out] Returns a VARIANT, subtype LONG, containing the sequence number within the tick session (0 based).
pvTickDate
[out] Returns a VARIANT, subtype DATE, containing the tick date.
pvTickUser
[out] Returns a VARIANT, subtype BSTR, containing the user initials of the tick session.
pvAmountDetC
[out] Returns a VARIANT, subtype DOUBLE, containing the tick amount in detail currency.
pvAmountDosC
[out] Returns a VARIANT, subtype DOUBLE, containing the tick amount in dossier currency.
pvTickSysNums
[out] Returns a VARIANT, subtype array of LONG, containing a list of entry system numbers involved in the tick session.
 
Return value
True if the previous tick info record of the current entry record was found, otherwise false.
 
Remarks
Use GetLastTickInfo to establish a 'starting point' and retrieve a tick session number, which can be used in subsequent calls to GetPrevTickInfo.
 
See Also
CreateEntry
GetLastTickInfo
 
Samples
 
C++
 
VARIANT vSession, vSequence, vTickDate, vTickUser, vAmountDetC, vAmountDosC, vTickSysNums;

// Get the tick information for the last tick session of the current entry record
if (pEntry->GetLastTickInfo (&vSession, &vSequence, &vTickDate, &vTickUser, &vAmountDetC, &vAmountDosC, &vTickSysNums) && vTickSysNums.vt&VT_ARRAY)
{
    // Process record data of the last tick session
    
    // Use the returned tick session number to get information on the previous tick sessions
    while (pEntry->GetPrevTickInfo (&vSession, &vSequence, &vTickDate, &vTickUser, &vAmountDetC, &vAmountDosC, &vTickSysNums) && vTickSysNums.vt&VT_ARRAY)
    {
        // Process record data of the previous tick session
    }
}

C#
 
object oSession, oSequence, oTickDate, oTickUser, oAmountDetC, oAmountDosC, oTickSysNums;

// Get the tick information for the last tick session of the current entry record
if (oEntry.GetLastTickInfo (out oSession, out oSequence, out oTickDate, out oTickUser, out oAmountDetC, out oAmountDosC, out oTickSysNums))
{
    // Process record data of the last tick session
    
    // Use the returned tick session number to get information on the previous tick sessions
    while (oEntry.GetPrevTickInfo (ref oSession, out oSequence, out oTickDate, out oTickUser, out oAmountDetC, out oAmountDosC, out oTickSysNums))
    {
        // Process record data of the previous tick session
    }
}

VBS
 
Dim oSession, oSequence, oTickDate, oTickUser, oAmountDetC, oAmountDosC, oTickSysNums, oSysNum

' Get the tick information for the last tick session of the current entry record
If oEntry.GetLastTickInfo(oSession, oSequence, oTickDate, oTickUser, oAmountDetC, oAmountDosC, oTickSysNums) Then

    ' Process record data of the last tick session

    ' Use the returned tick session number to get information on the previous tick sessions
    While oEntry.GetPrevTickInfo(oSession, oSequence, oTickDate, oTickUser, oAmountDetC, oAmountDosC, oTickSysNums)
        ' Process record data of the previous tick session
    Wend
End If

VB.NET
 
Dim oSession, oSequence, oTickDate, oTickUser, oAmountDetC, oAmountDosC, oTickSysNums, oSysNum As Object

' Get the tick information for the last tick session of the current entry record
If oEntry.GetLastTickInfo(oSession, oSequence, oTickDate, oTickUser, oAmountDetC, oAmountDosC, oTickSysNums) And Not IsNothing(oTickSysNums) Then

    ' Process record data of the last tick session

    While oEntry.GetPrevTickInfo(oSession, oSequence, oTickDate, oTickUser, oAmountDetC, oAmountDosC, oTickSysNums) And Not IsNothing(oTickSysNums)
        ' Process record data of the previous tick session
    End While
End If