Click or drag to resize
RunSaveRecords Method

Note: This API is now obsolete.

Saves the records. Obsolete function for backward compatibility.

Namespace:  Biolomics.BioCallback
Assembly:  Biolomics.BioCallback (in Biolomics.BioCallback.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[ObsoleteAttribute]
public static int SaveRecords(
	List<List<string>> p_RecordArray,
	string p_TableName,
	List<string> p_FieldNames
)

Parameters

p_RecordArray
Type: System.Collections.GenericListListString
The record array.
p_TableName
Type: SystemString
Name of the table.
p_FieldNames
Type: System.Collections.GenericListString
The field names.

Return Value

Type: Int32
Error code
Examples
This is an example of use of SaveRecords to save records(Obsolete).
Example VB.Net
Imports System
Imports BioloMICS.BioCallback
Imports BioloMICS.SharedClasses
Imports System.Collections

Public Class Program

    <STAThread()>
    Shared Sub Main()
        '    Create an instance of class Program and call its functions
        Dim c As New Program
        c.RunQuery()
    End Sub

    Public Sub RunQuery()

        '    *****    Obsolete example    *****

        Dim Results As New Generic.List(Of Generic.List(Of String))
        Dim Request As String = "_id <10"
        Dim TableName As String = "Your_Table_Name"
        Dim FieldName As New Generic.List(Of String) '0 = ID // 1 = Taxon Name
        FieldName.Add("Your_Field_Name") 'KField

        If Run.LoadRecords(Results, Request, TableName, FieldName) <> 0 Then
            Return
        End If
        Console.WriteLine(Results(8)(2))
        Results(8)(2) = 12313
        Run.SaveRecords(Results, TableName, FieldName)
    End Sub
End Class
See Also