Page 1 of 1

Extracting values for enum type

Posted: Thu 12 Nov 2009 14:03
by jcanepa
How can I extract the values for an enumerated type?

Posted: Fri 13 Nov 2009 10:59
by Plash
You need to write a code that will split a string value returned from a field.

How do I get values from an enum type?

Posted: Fri 13 Nov 2009 17:17
by jcanepa
OK, but how do I get the individual values in the first place?

Posted: Mon 16 Nov 2009 09:19
by Plash
Use the AsString property of TField to get a value. For example:

Code: Select all

v := PgQuery.FieldByName('a').AsString;