Check to see is lcRec is zero
If you are using the M$ coding, make sure that lcRec is not a character instead
of a number (lnRec??)
If type("lcRec") = "N" and lcRec > 0
go lcRec or whatever
ELSE
need to do val() if character, etc.
ENDIF
----- Original Message -----
From: "Sytze de Boer" <[email protected]>
To: "profox" <[email protected]>
Sent: Monday, May 09, 2011 5:00 PM
Subject: VFP9 - error help
Can someone point me in the right direction please
In a routine where I've never had a problem, it now bombs out on the
following line
locate for recno()=lcrec
It bombs with message "Record is out of range" (as part of my error routine
If I test this on my pc from the command line, I can see it is indeed
an End of locate scope but my error routine is not triggered by this
On the other hand, if I say "go lcrec" then the error routine is triggered
--
Regards
Sytze de Boer
Kiss Software
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/00f001cc0eab$898b5c70$7a00a8c0@w2k3s02
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.