Windward Studios API Reference
TopNSelect Method
See Also  Send comments on this topic.
WindwardInterfaces.net.windward.datasource Namespace > IDataSourceMetaData Interface : TopNSelect Method




query
The select to adjust.
num
The max number of rows to return. Warning, if reducing for a forEach iteration, must be the step size (or larger).

Glossary Item Box

Convert the select to return just the top N row from the results.

Syntax

Visual Basic (Declaration) 
Function TopNSelect( _
   ByVal query As String, _
   ByVal num As Integer _
) As String
Visual Basic (Usage)Copy Code
Dim instance As IDataSourceMetaData
Dim query As String
Dim num As Integer
Dim value As String
 
value = instance.TopNSelect(query, num)
C# 
string TopNSelect( 
   string query,
   int num
)
Managed Extensions for C++ 
string* TopNSelect( 
   string* query,
   int num
) 
C++/CLI 
String^ TopNSelect( 
   String^ query,
   int num
) 

Parameters

query
The select to adjust.
num
The max number of rows to return. Warning, if reducing for a forEach iteration, must be the step size (or larger).

Return Value

The select with "top N" added.

Requirements

Platforms: Windows 10, Windows NT, Windows Server

See Also

Windward Studios - .NET Document Generation software