'*********************************************************
'Using a User Interface by selecting the query parameters
'*********************************************************
Dialog
Title "Query Parameters"
Control StaticText
Title "Select Landuse"
Control RadioGroup
Title LandUse
ID 1
Control StaticText
Title "Select Zoning"
Control ListBox
Title Zoning
ID 2
Control StaticText
Title "Select Suburb"
Control PopupMenu
Title Suburb
ID 3
Control OKButton
Control CancelButton
Calling Query
End Sub
'*******************************************************************
'Running the SQL Select using the parameters and display on the map
'*******************************************************************
Sub Query
Select PrimaryLanduseType, PermissibleLandUse from PermissibleLandUse, mlnk_Suburbs
Where PermissibleLandUse.obj Within mlnk_Suburbs.obj
And PrimaryLanduseType = "ReadControlValue(1)"
And PermissibleLanduse.Zoning = "ReadControlValue(2)"
And mlnk_Suburbs.Locality = "ReadControlValue(3)"
End Sub