You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

frankp

Beginner

  • "frankp" started this thread

Posts: 14

Date of registration: Jan 12th 2009

  • Send private message

1

Thursday, February 5th 2009, 6:04pm

Resultset - field names

Hello again,

How can I retrieve the field names from a Resultset?

Thanks

Peter

Trainee

  • "Peter" is male

Posts: 69

Date of registration: Nov 24th 2008

Location: Cologne, Germany

Occupation: Second Vice President of Distributed Junk and Trash Development

  • Send private message

2

Friday, February 6th 2009, 12:51am

RE: Resultset - field names

Quoted from "frankp"

How can I retrieve the field names from a Resultset?


Jabaco Source

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Database1.ConnectMDB("D:\db1.mdb")

Dim myResultSet As ResultSet = Database1.ExecuteStatement("Select * From Table1")

Dim myResultSetMetaData As java#sql#ResultSetMetaData = myResultSet.getMetaData
        
Dim colCounter As Integer
        
For colCounter = 1 To myResultSetMetaData.getColumnCount
        
   List1.AddItem myResultSetMetaData.getColumnName(colCounter)
        
Next

myResultSet.close


Greetings ... Peter

frankp

Beginner

  • "frankp" started this thread

Posts: 14

Date of registration: Jan 12th 2009

  • Send private message

3

Friday, February 6th 2009, 8:49am

RE: RE: Resultset - field names

Thanks Peter,

Frank

Rate this thread
WoltLab Burning Board