Click or drag to resize
RunLoadRecords Method (ListListString, String, String, ListString)

Note: This API is now obsolete.

Loads 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 LoadRecords(
	List<List<string>> p_ResultArray,
	string p_SqlQuery,
	string p_TableName,
	List<string> p_FieldNames
)

Parameters

p_ResultArray
Type: System.Collections.GenericListListString
The result array.
p_SqlQuery
Type: SystemString
The SQL query.
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 LoadRecords to 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