Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Query
  Active
  Connection
  Item
  Text
  Bof
  Bookmark
  ConnectionString
  Eof
  FieldCount
  FieldDefs
  Filter
  Filtered
  KeyField
  MaxRecords
  RecordCount
  Position
  RequestLive
  ParamCheck
  Params
  CachedUpdates
  ApplyUpdates
  CommitUpdates
  CancelUpdates
  RevertRecord
  UpdatesPending
  DeleteSQL
  InsertSQL
  ModifySQL
  UpdateParams
  ReadOnly
  MasterSource
  MasterFields
  RowsAffected
  SortedFields
  Lookup
  Locate
  Insert
  Delete
  Edit
  Cancel
  Post
  DisableControls
  EnableControls
  First
  Last
  Next
  Prior
  MoveBy
  Data
  Get
  PrimaryKey
  State
  OnScroll
  OnOpen
  OnClose
  OnPost
  OnInsert
  OnDelete
  Template
  StoredProc
  Exec
Params [[zQuery.Params]] 
NOTE: This Design document is subject to change at any time.
Params: ParamCollection

This property is used to change any SQL parameters used in the Text property. To retrieve or change a parameter, use the syntax: Query.Params.ParamsValues("ParamName")

For example, in the SQL statement:

Query.Text = "SELECT * FROM Table WHERE Key = :KeyParam"
Query.Params.ParamsValue("KeyParam") = "MyKey"


This expands to the SQL query:
SELECT * FROM Table WHERE Key = 'MyKey'

Note the colon : syntax for specifying a parameter in the SQL statement. While parameters can be used in any query, they are more useful when dealing with stored procedures.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net