Jump to content

Recommended Posts

Posted

Чем отличаются 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

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

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

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

Posted
On 5/14/2020 at 9:38 PM, x11 said:

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

 

3 minutes ago, Sherzod said:

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

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

Posted

Тут вопрос в том, чем отличаются между собой эти две метода? Какой когда/где использовать?

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...