<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.5346.5" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Norbert wrote:</FONT></DIV>
<DIV><FONT size=2>> </FONT>if I remember correctly you have to:<BR>> 1. 
get a layer<BR>> 2. open the layer<BR>> 3. get a feature from the layer 
with shape- and tileindex<BR>> 4. get a value from the feature (loop through 
with the numvalues)<BR>> 5. close the layer<BR></DIV>
<DIV>Thanks Norbert. By fishing around the documentation and email archives (for 
way too long!) and by trial-and-error I figure out this code:</DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>$layer->open();</FONT></DIV>
<DIV><FONT size=2>for ($i=0; $i<13; $i++) 
{<BR>        $shp = $layer->getShape(-1, 
$i);<BR>        echo 
$shp->getvalue($layer, "myfieldname");</FONT></DIV>
<DIV><FONT size=2>}<BR>$layer->close();</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I don't know how to obtain the number 
of ShapeObj's in the layer, so I just hardwired 13 in there because I 
knew there were 13 points in the layer I was accessing. But there must be some 
attribute to the LayerObj or a function call that returns that 
number?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>John</FONT></DIV></BODY></HTML>