Jump to content

ColumnFromFieldName vs ColumnByName


x11

Recommended Posts

Чем отличаются ColumnFromFieldName и ColumnByName?

 

  col := dbgData.ColumnByName('id');// так работает
  col := dbgData.Columns.ColumnFromFieldName ('id');// так ошибка

  if Assigned(col) then
    col.ShowSummary := True
  else
    MessageBox(constError, 'col not assigned');

 

под ошибкой подразумеваю, что col not assigned

Link to comment
Share on other sites

  • 2 months later...
On 5/14/2020 at 9:38 PM, x11 said:

под ошибкой подразумеваю, что col not assigned

 

3 minutes ago, Sherzod said:

Я не смог воспроизвести.

Хотя, Вы должны учитывать чувствительность к регистру.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...