Difference between revisions of "FileMan Delphi Components/TFMGets FieldNumbers"

From VistApedia
Jump to: navigation, search
 
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
  
 
You can set array items in the '''FieldNumbers''' array in the following formats:
 
You can set array items in the '''FieldNumbers''' array in the following formats:
<table>
+
<table border=1>
<tr><th>Item Format Applies To Example
+
<tr><th>Item Format</th><th>Applies To</th><th>Example</th></tr>
 
<tr><td>Individual field</td><td>All</td><td>.01</td></tr>
 
<tr><td>Individual field</td><td>All</td><td>.01</td></tr>
 
<tr><td>DR-style list</td><td>All</td><td>.01;2;3;5</td></tr>
 
<tr><td>DR-style list</td><td>All</td><td>.01;2;3;5</td></tr>

Latest revision as of 17:12, 8 February 2011

FieldNumbers Property

Applies To

Declaration

property FieldNumbers: TStrings;


Description

This is a list of field numbers representing the fields to be retrieved by the data access component.

The default value of this property is a single array item set to ".01". Set each item in this TStrings array to a field number that should be retrieved. When a server call is made, all items in the array are concatenated into a single Fields parameter to pass to the data access component's underlying DBS call.

You can set array items in the FieldNumbers array in the following formats:

Item FormatApplies ToExample
Individual fieldAll.01
DR-style listAll.01;2;3;5
DR-style rangeTFMGets only.01:5

For the TFMGets component, to set this property at run-time, use the AddField and RemoveField methods. For TFMFinder and TFMLister components, use TStrings methods to set this property at run-time.

See Also