>> In Clipper, ? SETPOS(10,4) returns 10. In Harbour, it returns NIL
>
> Also DEVPOS(). They should return NIL as per documentation,
> but they return the first parameter, unchanged, even if it's
> invalid. I can't recall past discussions, but it seems like
> a C5.2/5.3 bug.
Be precise! From Clipper guide:
SETPOS()
Move the cursor to a new position
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
Syntax
SETPOS(<nRow>, <nCol>) --> <nRow>
Arguments
<nRow> and <nCol> define the new screen position of the cursor.
These values may range from 0, 0 to MAXROW(), MAXCOL().
Returns
SETPOS() always returns <nRow>
Description
SETPOS() is an environment function that moves the cursor to a new
position on the screen. After the cursor is positioned, ROW() and COL()
are updated accordingly. To control the shape and visibility of the
cursor, use the SETCURSOR() function.
Examples
ž This example moves the cursor to a new position then displays
a string to the screen using a console command, ??:
SETPOS(1, 1)
?? "Hello world"
Files Library is CLIPPER.LIB.
Best regards,
Saulius
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour