.NET Framework Class Library
Database.QueryTableFieldByKey Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > Database Class > Database Methods >

.NET Framework Class Library
Database.QueryTableFieldByKey Method

Given a keyName/KeyValue, it fetches from the required table the value of an assigned field

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function QueryTableFieldByKey ( _

 tableName As String, _
 keyName As String, _
 keyValue As String, _
 fieldName As String _
As String

C#

public string QueryTableFieldByKey(

 string tableName,
 string keyName,
 string keyValue,
 string fieldName
)

Visual C++

public:

StringQueryTableFieldByKey(
 StringtableName,
 StringkeyName,
 StringkeyValue,
 StringfieldName
)

JavaScript

function queryTableFieldByKey(tableNamekeyNamekeyValuefieldName);

Parameters

tableName

Type: System.String
table name identifier

keyName

Type: System.String
key name of the required table

keyValue

Type: System.String
key value to identify the requested field

fieldName

Type: System.String
field name identifier, to fetch the value

Return Value

fetched query value

Remarks

See Also

Database Class

Database Members

MwPDMApi Namespace