Spencer Simpson wrote:

I’m not going to pretend I understand what’s going on.   However, I’ve found
that aliases act flaky if you refer to them too many times between fetches.
I don't think they're flakey, you just have to understand how they work. Every time you fetch a new record, that updates the alias. If you need a variable that doesn't chnage with fetch, then as you say, use a normal variable.

Object aliases are a little more difficult since you can't assign a null
object to a variable...
Another way to simulate a null object in a variable is to assign it to an object that has no dimension (e.g. a line with the start and end point in the same place, or pline or region with 0 nodes). Then to test "null-ness" check it's length or area and see if it's zero. I often use this technique in functions that return an object when a bad situation would otherwise cause a crash.
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to