PdcDBQuery.FieldNames: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == Eof as Boolean == Description == Returns true or false wheter the recordpointer is at the last record of the query == Notes == This property returns whete..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Declaration ==
== Declaration ==
Eof as Boolean
FieldNames as IStrings


== Description ==
== Description ==
Returns true or false wheter the recordpointer is at the last record of the query  
Returns the list of fieldnames for the supplied query.


== Notes ==
== Notes ==
This property returns wheter or not the end of file is reached.
 


== Code example ==
== Code example ==
This code example returns the first fieldname of the query ("KL_NAAM").


<source lang="vb">
<source lang="vb">
Sub sExecuteQuery
dim objQuery
dim intCnt
  set objQuery = pdc.Database.OpenQuery(pdcConData)
  objQuery.SQL = "SELECT * FROM LK_KLANT"


  if objQuery.Execute then
    msgbox objQuery.FieldNames(0)
  else
    msgbox "Error:" & vbCrLf & pdc.LastError & vbCrLf & vbCrLf & "SQL:" & vbCrLf & qryCustomer.SQL
  end if
End Sub
</source>
</source>


== Availability ==
== Availability ==
Available since September 2008 (from version 3.8)

Latest revision as of 13:08, 31 July 2013

Declaration

FieldNames as IStrings

Description

Returns the list of fieldnames for the supplied query.

Notes

Code example

This code example returns the first fieldname of the query ("KL_NAAM").

Sub sExecuteQuery
dim objQuery
dim intCnt

  set objQuery = pdc.Database.OpenQuery(pdcConData)
  objQuery.SQL = "SELECT * FROM LK_KLANT"

  if objQuery.Execute then
    msgbox objQuery.FieldNames(0)
  else
    msgbox "Error:" & vbCrLf & pdc.LastError & vbCrLf & vbCrLf & "SQL:" & vbCrLf & qryCustomer.SQL
  end if
End Sub

Availability