Changes

Jump to: navigation, search

Project R0.1 20131- OOP344

508 bytes added, 17:55, 31 January 2013
Help
*:1. Your function does not allow the cursor to move before the start of the field or past the end of the field. <u>If the field ends at the right edge of the screen, your function does not allow the cursor to the right of that edge</u>.
**I think this means that: if the last position of the field is at getCols(), you cannot allow the cursor position to go beyond that. Remember xMOVER? how it console.alarm()'s when you try to go past getCols()? Its basically saying that, the cursor MUST stay within the field. -fjzhou
*:2. END - moves the cursor to the position to the right of the last character in the string, changing the offset, if necessary. <u>If the last character is at the edge of the screen, moves the cursor to at that character.</u>
**Same thing as the previous question? *curPos = getCols() ? -fjzhou
***Thanks you. I wonder why I didn't use any code from XMOVER. If you are right, then we have to keep tracking the cursor position on the screen by using getPos() function and comparing with the getCols()? However, I don't think that would be a problem since we keep adjusting the strOffset if the curPosition is at the end of the field. Then the last character of the string will not be at the edge of the screen and the cursor will be. So why would we put the cursor on the last character of the string?
==Help Needed==
1
edit

Navigation menu