View Single Post
  #1  
Old 02-14-2016, 12:57 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko is a jewel in the roughKirko is a jewel in the rough
getlines() not returning

The functions getlines() and getlinecount() are returning nothing but when I do something else like gettext() it returns correctly.
This is all in a for loop when displaying messages
PHP Code:
echo(("Message_"@temp.i).getlines());
echo((
"Message_"@temp.i).getlinecount());
echo((
"Message_"@temp.i).gettext());//only one to work 
Another thing I tried to do
PHP Code:
this.trueSize thiso.catchevent(this"onReflow""onTest"); 
PHP Code:
function onTest(temp.objnewwidthnewheight){
  echo(
temp.obj.getlinecount()); //does echo correctly
  
return temp.obj.getlinecount();

but then back in the for loop this just doesnt echo anything
PHP Code:
echo((@"Message_"@temp.i).trueSize); 
What I'm trying to do is get the amount of lines there are in the text control so I can adjust the y position for the next message.
Reply With Quote