peter,
i added in the two lines
Dim aObj As Alias
aObj = surveyarea + ".obj"
as suggested but it has issues when trying to read the surveyarea
table (code of the sub in question shown below)
sub surveypoints
Dim aObj As Alias
aObj = surveyarea + ".obj"
fetch first from surveyarea (error occurs on this line saying "table
surveyarea not found" this is a gloabl variable i assigned a table to
in the previous sub)
xmax=objectgeography(aObj, OBJ_GEO_MAXX)
xmin=objectgeography(aObj, OBJ_GEO_MINX)
ymax=objectgeography(aObj, OBJ_GEO_MAXY)
ymin=objectgeography(aObj, OBJ_GEO_MINY)
dialog
title "Survey Points"
control statictext
title "Enter number of survey points"
control edittext
into pointdata
control OKButton
if CommandInfo (CMD_INFO_DLG_OK)then
call surveydata
End If
end sub