>Hi
>
>I am parsing an array - for some reason memlines() reports 30 lines when a display of the array shows only 20
>
>How can I determine how many elements there are in an array?
>
>Thanks
Colin,
If I guess right you're comparing memlines() return value to alines() return value on the same string or memo, right ?
If so memlines is dependant to current memowidth setting and might show more than actual line count (where a line ends with CR,LF or CRLF).
ie:
lcLine = replicate('hello ',1024)
lnMemoWidth = Set('Memowidth')
? memlines(m.lcLine), alines(aDummy,m.lcLine)
Set memowidth to 1024
? memlines(m.lcLine), alines(aDummy,m.lcLine)
Set memowidth to 512
? memlines(m.lcLine), alines(aDummy,m.lcLine)
Set memowidth to m.lnMemoWidth
Cetin