STATIC FUNCTION nroref1(nro_ref)
local vmensaje:= space (maxcol())
// alert ('llego a la funcion con '+nro_ref)
USE respop VIA "DBFCMX" NEW
ordSetFocus("nroref")
cmxSetScope(0)
cmxSetScope(1)
DBGOTOP()
nr:=IF(respop->(DBSEEK(nro_ref)),respop->nroref,'-')
alert(nr)
IF !(nr == '-')
vmensaje:='el numero ingresado existe'
ENDIF
@ maxrow(),00 SAY vmensaje
RETURN !Empty(vmensaje)
Y me da este error "Workarea not indexed"
Cualquier ayuda es bienvenida muchas gracias