User Tools

Site Tools


prop_line.htm
Navigation:  Language Reference > App C - PROP: Runtime Properties > Complete Property List >====== PROP:Line and PROP:LineCount ====== Previous pageReturn to chapter overviewNext page

PROP:Line is an array whose elements each contain one line of the text in a TEXT control. (READ ONLY)

PROP:LineCount returns the number of lines of text in a TEXT control, or the total number of records in the listbox source. It can be useful if source of records is not a queue. If source is a queue, returned value is equal to RECORDS(queue). (READ ONLY)

Example:

LineCount SHORT

MemoLine STRING(80)

CustRpt  REPORT,AT(1000,1000,6500,9000),THOUS

Detail1   DETAIL,AT(0,0,6500,6000)

**        TEXT,AT(0,0,6500,6000),USE(Fil:MemoField)**

**       END**

Detail2   DETAIL,AT(0,0,6500,125)

**        STRING(@s80),AT(0,0,6500,125),USE(MemoLine)**

**       END**

**      END**

** CODE**

** OPEN(File)**

** SET(File)**

** OPEN(CustRpt)**

** LOOP**

**  NEXT(File)**

**  LineCount = CustRpt$?Fil:MemoField{PROP:LineCount}**

**  LOOP X# = 1 TO LineCount **

**   MemoLine = CustRpt$?Fil:MemoField{PROP:Line,X#}**

**   PRINT(Detail2)**

**  END**

** END**

**   **

prop_line.htm.txt · Last modified: by 127.0.0.1