You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Rosi Delphi Components
Hi,
is there a simple function to get the column using the field name something like ColumnByName('ID') or do I have to loop through all columns and compare the fieldNames?
Thanks,
Matt
Tomas Rosinsky
unread,
Feb 1, 2021, 12:14:39 PM2/1/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Rosi Delphi Components
Hi,
rDBGrid provides public procedure GetFieldNameColumnIndex which provides exactly what you need.
{ return column index for specific field name }
function GetFieldNameColumnIndex(const FieldName: string): integer;
Regards
Tomas
Matt
unread,
Feb 2, 2021, 3:25:07 AM2/2/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message