Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GetIt Reference Guide - syntax: n_sfield(<rown>,<coln>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Syntax: N_SFIELD(<rowN>,<colN>)

Returns the Get number of the field under the specified coordinates.

Example

STORE SPACE(20) to lastname,firstname
@ 1,0 SAY "Last Name:"
N_ONMOUSE("mouse_hit")
  ...
PROCEDURE mouse_hit
status = N_ONMOUSE()
row = CH_ASC1(status,1)
col = CH_ASC1(status,2)
getno = N_SFIELD(row,col)
IF getno > 0
  @ 24,0 "Mouse is positioned on field:" + N_GETVAR(getno)
ENDIF
RETURN

Notes

If there is no Get under the specified location, then 0 is returned.

This function is typically used in conjunction with a library that supports
a mouse.  N_ONMOUSE can be used to call a procedure when a mouse button has
been pressed.

See Also: N_SCOLOR N_SCHAR

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson