Returns the collection of QueryFieldDef objects included in the QueryDef. You include fields in a query using the BuildField method. The new QueryFieldDefs object that this method returns provides alternatemethods to do what you can do with the BuildField or GetFieldByPosition methods.
VBScript
querydef.QueryFieldDefs
Perl
$querydef->GetQueryFieldDefs();