Lasso Soft Inc. > Home

-Add

The -Add command tag allows a record to be added to a database table.

The database and table for the add action should be specified using the -Database and -Table command tags. Additional name/value parameters specify the starting values for the record to be added to the database.

  • Syntax
  • Parameters
[Inline: -Add,
  -Database='Database_Name',
  -Table='Table_Name', ...]

<a href="default.lasso?-Add&
  -Database=Database_Name&
  -Table=Table_Name&...">Link</a>

<form action="default.lasso" method="POST">
  <input type="hidden" name="-Add" value="">
  <input type="hidden" name="-Database" value="Database_Name">
  <input type="hidden" name="-Table" value="Table_Name">
  ...
  <input type="submit" name="-Add" value="Add Record">
</form>
Examples

To add a record to a database:

Use the -Add command tag within an [Inline]. The following [Inline] adds a record to a database Contacts in the table People with First_Name Mark and Last_Name Nuevo.

[Inline: -Add,
    -Database='Contacts',
    -Table='People',
    -KeyField='ID',
    'First_Name'='Mark',
    'Last_Name'='Nuevo',
    'Title'='Mr.',
    'Sex'='Male']
[/Inline]
Tag Link -Add Category Action
Type Command Data Source Any
Support Preferred Version 2.5
Output Type None Security Database,Classic
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, 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