I did this also though this doesn't give any compile error , it gives error
at run time as argument is of invalid type.

Actually I am trying to visit all the objects ( which in my case are all
regions) of a perticular layer...so i am storing that layer's name in
variable tabname and than trying to read centroid , max and min points of
its objects using which I will zoom to them. But I am unable to understand
why its not working if i give the name (constLayer.obj) of layer instead of
tabname ( variable) it works the way I want. Can u please explain ?

On 12/25/05, Trey Pattillo <[EMAIL PROTECTED]> wrote:
>
>
> According to your example
> ObjectGeography(tablename.obj,OBJ_GEO_MINX )
>
> it is not "tablename.OBJ" -- just TableName
>
> direct code ---   = ObjectGeography(MyTableName.......)
> variable:
> DIM aTable as String
> aTable = MyTableName
> ObjectGeography(aTable.......)
>
>
> On Sunday 25 December 2005 06:09, Mahtab Alam wrote:
> > Hi,
> >
> > Can anyone help me why I am getting a error message whenever I put a
> > varibale ( that stores the table name) in any Object function e.g.
> >
> > MinX=ObjectGeography(tablename.obj,OBJ_GEO_MINX )  it doesn't compile
> but
> > when I give any other name which i have defined it doesn't show any
> error.
> >
> >
> > Regards
> > Mahtab
> > _______________________________________________
> > MapInfo-L mailing list
> > [email protected]
> > http://www.directionsmag.com/mailman/listinfo/mapinfo-l
>
> --
> Trey Pattillo
>
> Eye have a spelling chequer.
> It came with my pea see.
> It plainly marks for my revue
> Miss takes I can not sea.
>



--
Regards

Mahtab Alam
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to