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.obj, newwidth, newheight){
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.