Try this:
<cfobject type="COM" name="rs"
class="Map.Layer("states").SearchExpression("STATE_NAME = 'California'")"
action="CREATE">
<CFSET mapset='Map("states").Recordset'>
<CFSET Extent=mapset.RecordExtent>
CF use of objects has a problem using more than 2 dot paths at a time.
Setting the first 2 parts to a variable and then using that variable with
the third works.


> not up to speed with COM & my vb guy's out sick so would anyone
> be kind enough to suggest cf code for the following ASP:
>
> Set rs = Map.Layer("states").SearchExpression("STATE_NAME = 'California'")
>
> Set Extent = Map("states").Recordset.RecordExtent
>
> many thanks.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to