Results 1 to 3 of 3

Thread: Evaluate Delphi Statement

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Evaluate Delphi Statement

    I'm new to Deplhi can anyone tell me what is meaning of code place below and what does it return:

    SetRangeStart;
    FieldByName('TYPE').AsString := 'SIZE';
    FieldByName('NAME').AsString := '';
    SetRangeEnd;
    FieldByName('TYPE').AsString := 'SIZE';
    FieldByName('NAME').AsString := '~';
    ApplyRange;

    Basially what is the '~' meaning here in the Code.Please any one can help.

    Thanks.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Evaluate Delphi Statement

    Without seeing the rest of the procedure, it's pretty ambiguous code. The ~, however, is merely the ~ character - it's being assigned as the name of the object. In VB it would look like

    Object.Name = "~"
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Re: Evaluate Delphi Statement

    I need to know what search criteria this code is building. Suppose we replace '~' with some other character, then of what range this code will pick the records.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width