티스토리 뷰

Data.DB.TDataSet.FieldByName

Up to Parent: TDataSet

Delphi

function FieldByName(const FieldName: string): TField;

C++

TField* __fastcall FieldByName(const System::UnicodeString FieldName);

Properties

Type

Visibility

Source

Unit

Parent

function

public

Data.DB.pas

Data.DB.hpp

Data.DB

TDataSet

Description

Finds a field / based on its name.

Call FieldByName / to retrieve field information for a field / given its name.

FieldName / is the name of an existing field. 

FieldByName / returns the TField component / that represents the specified field.

If the specified field does not exist, / FieldByName / raises an EDatabaseError exception.

 

이름을 기반으로 필드를 찾습니다.

FieldByName을 호출하면 이름이 지정된 필드의 필드 정보를 검색 할 수 있습니다.

FieldName은 기존 필드의 이름입니다.

FieldByName은 명시된 필드를 나타내는 TField 구성 요소를 반환합니다.

명시된 필드가 없으면 FieldByNameEDatabaseError 예외를 발생시킵니다.

 

FieldName / can be / the name of a simple field, / the name of a subfield of an object field / that has been qualified by the parent field's name, / or the name of an aggregated field.

Because of this flexibility, / it is often preferable to use FieldByName / rather than the Fields property or the AggFields property.

An application / can directly access / specific properties and methods of the field returned by FieldByName.

For example, / the following statement / determines if a specified field is a calculated field:

 

FieldName은 단순 필드의 이름, 상위 필드의 이름으로 규정된 오브젝트 필드의 서브 필드 이름 또는 집계된 필드의 이름이 될 수 있습니다.

이러한 유연성 때문에 Fields 속성이나 AggFields 속성 대신 FieldByName을 사용하는 것이 좋습니다.

응용 프로그램은 FieldByName에서 반환 한 필드의 특정 속성과 메서드에 직접 액세스 할 수 있습니다.

예를 들어, 다음 명령문은 명시된 필드가 계산된 필드인지 여부를 알아냅니다.

 

if Customers.FieldByName('FullName').Calculated then
MessageDlg(Format('%s is a calculated field. ', ['FullName']), mtInformation, [mbOK], 0);

 

if (Customers->FieldByName("FullName")->Calculated)
Application.ShowMessage("This is a calculated field", "FullName", MB_OK);


FieldByName / is especially useful / at design time for developers who are / creating database applications, / but do not have access / to the underlying table / and therefore cannot use persistent field components.

Tip: To retrieve or set the value for a specific field, / call the default dataset method FieldValues instead of FieldByName.

 

FieldByName은 데이터베이스 응용 프로그램을 작성하지만 기본 테이블에 대한 액세스 권한이 없으므로 영구 필드 구성요소를 사용할 수 없는 개발자에게 특히 유용합니다.

: 특정 필드의 값을 검색하거나 설정하려면 FieldByName 대신 기본 데이터 세트 메서드 FieldValues 를 호출하십시오.

 

retrieve 미국·영국 [rɪ|tri:v] 

1. (특히 제자리가 아닌 곳에 있는 것을) 되찾아오다   2. (정보를) 검색하다

given 미국·영국 [|gɪvn] 

1. (이미) 정해진   2. 특정한   3. …을 고려해 볼 때

existing 미국·영국 [ɪg|zɪstɪŋ] 

기존의, 현재 사용되는

specified 

명시된

represent 미국·영국 [|reprɪ|zent] 

1. (행사회의 등에서 단체 등을) 대표하다   2. (상징물로) 나타내다, 상징하다

subfield 미국·영국 [sʌ́bfì:ld] 

부분체(部分體); (학문 등의) 하위 분야, 서브필드

qualified 미국식 [|kwɑ:lɪfaɪd] 

1. 자격()이 있는   2. (무엇에 대한 지식기술 등을 갖춰) 자격이 있는   3. 단서[조건]를 다는, 제한적인

aggregated 

집계된

flexibility 미국식 [flèksəbíləti] 

1. 구부리기[휘기] 쉬움, 굴곡성, 유연성; 나긋나긋함   2. 다루기 쉬움, 유순함

often 미국식 [|ɔ:fn;|ɔ:ftən;|ɑ:f-] 

1. 자주   2. 흔히, 보통

preferable 미국·영국 [|prefrəbl] 

더 좋은, 나은; 선호되는

rather than 

…보다는[대신에/…하지 말고]

following 미국식 [|fɑ:loʊɪŋ] 

1. (시간상으로) 그 다음의   2. 다음에 나오는   3. 추종자들

determine 미국식 [dɪ|t3:rmɪn] 

1. 알아내다, 밝히다   2. (무엇의 방식유형을) 결정하다   3. (공식적으로) 확정하다

especially 미국·영국 [ɪ|speʃəli] 

1. 특히   2. 특별히 (…을 위해서)   3. 유난히, 특별히

underlying 미국식 [|ʌndər|laɪɪŋ] 

1. (겉으로 잘 드러나지는 않지만) 근본적인   2. (다른 것의) 밑에 있는

therefore 미국식 [|ðerfɔ:(r)] 

그러므로, 그러니

persistent 미국식 [pər|sɪstənt] 

1. 끈질긴, 집요한   2. 끊임없이 지속되는

 

출처: http://docwiki.embarcadero.com/Libraries/XE2/en/Data.DB.TDataSet.FieldByName

'프로그래밍 언어 > Delphi' 카테고리의 다른 글

[Reference] System.StrUtils.SplitString  (0) 2017.01.05
[Reference] ADODB.TADOQuery.SQL  (0) 2017.01.04
[Reference] TObject.Free  (0) 2017.01.02
[Reference] ADODB.TADOQuery  (0) 2016.12.31
[Reference] TDataSet.AfterPost  (0) 2016.12.30
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함