Lasso Soft Inc. > Home

[Field_Name]

[Field_Name] returns the name of a field in the current database and table. A number parameter returns the name of the field in that position within the current table. Other parameters are described below. Synonym is [Column_Name].

  • Syntax
  • Parameters
[Field_Name: -Count]

[Field_Name: Field Index]

[Field_Name: Field Index, -Type]

[Field_Name: Field Index, -Protection]
Optional Parameters
Field Index Specifies which field name should be returned. Ranges from 1 to the value of [Field_Name: -Count]. Cannot be used in concert with the -Count keyword.
-Count Returns the number of fields in the current result set. Cannot be used in concert with a field index.
Examples

To return a list of all fields in a table:

Use the [Field_Name] tag. The following example uses a -Show action in an inline to return information about the People table of the Contacts database. The [Field_Name] tag is used in [Loop] ... [/Loop] tags to return the names and types of the fields.

[Inline: -Database='Contacts', -Table='People', -Show]
  [Loop: (Field_Name: -Count)]
    <br>[Field_Name: Loop_Count] ([Field_Name: Loop_Count, -Type])
  [/Loop]
[/Inline]
Result:
<br>FIrst_Name (text)
<br>Last_Name (text)
<br>Phone_Number (text)
<br>Title (text)
<br>Sex (text)
Tag Link [Field_Name] Category Database
Type Substitution Data Source Any
Support Preferred Version 2.5
Output Type String Security None
Implementation Internal Sets Lasso 6.0, Lasso 5.0,LDML3x,LDML25

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft