# PostGis ad hoc queries and hex wkb to bytes\[\]

**URL:** <https://community.thinkgeo.com/t/postgis-ad-hoc-queries-and-hex-wkb-to-bytes/1470>\
**Category:** WinForms\
**Created:** [October 22, 2010, 6:05pm UTC](https://community.thinkgeo.com/t/postgis-ad-hoc-queries-and-hex-wkb-to-bytes/1470 "2010-10-22T18:05:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ioannis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/i/ad7895/32.png) [@Ioannis](https://community.thinkgeo.com/u/Ioannis)\
**Post date:** [October 22, 2010, 6:05pm UTC](https://community.thinkgeo.com/t/postgis-ad-hoc-queries-and-hex-wkb-to-bytes/1470/1 "2010-10-22T18:05:37Z")

</div>

Hello,

I&nbsp;have&nbsp;been&nbsp;trying&nbsp;for&nbsp;a&nbsp;while&nbsp;to&nbsp;work&nbsp;with&nbsp;MapSuite&nbsp;Desktop&nbsp;edition&nbsp;as&nbsp;I&nbsp;inherited&nbsp;the&nbsp;code&nbsp;and&nbsp;a&nbsp;project&nbsp;from&nbsp;my&nbsp;predecessor.&nbsp;Looking&nbsp;through&nbsp;the&nbsp;code&nbsp;and&nbsp;through&nbsp;this&nbsp;forum&nbsp;I&nbsp;realised&nbsp;that&nbsp;MapSuite&nbsp;is&nbsp;not&nbsp;able&nbsp;(yet?&nbsp;correct&nbsp;me&nbsp;if&nbsp;I&nbsp;am&nbsp;wrong)&nbsp;to&nbsp;issue&nbsp;ad&nbsp;hoc&nbsp;queries&nbsp;in&nbsp;the&nbsp;PostGis&nbsp;server&nbsp;and&nbsp;from&nbsp;there&nbsp;to&nbsp;create&nbsp;Layers.&nbsp;It&nbsp;rather&nbsp;expects&nbsp;a&nbsp;View&nbsp;or&nbsp;Table&nbsp;as&nbsp;i&nbsp;have&nbsp;seen.&nbsp;This&nbsp;is&nbsp;very&nbsp;limiting&nbsp;as&nbsp;(a)&nbsp;you&nbsp;must&nbsp;either&nbsp;resort&nbsp;in&nbsp;creating&nbsp;tables&nbsp;on&nbsp;the&nbsp;fly&nbsp;and&nbsp;then&nbsp;call&nbsp;them&nbsp;via&nbsp;the&nbsp;PostGisFeatureLayer&nbsp;contructor&nbsp;or&nbsp;(b)&nbsp;creating&nbsp;views&nbsp;on&nbsp;the&nbsp;fly&nbsp;that&nbsp;is&nbsp;also&nbsp;...&nbsp;ugly...&nbsp;In&nbsp;fact,&nbsp;the&nbsp;best&nbsp;would&nbsp;be&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;get&nbsp;MapSuite&nbsp;layer&nbsp;diretly&nbsp;form&nbsp;custom&nbsp;queries&nbsp;or&nbsp;even&nbsp;better&nbsp;from&nbsp;stored&nbsp;procedures&nbsp;that&nbsp;return&nbsp;records/setof[]/table&nbsp;structures&nbsp;etc.&nbsp;So&nbsp;my&nbsp;first&nbsp;question&nbsp;is,&nbsp;am&nbsp;I&nbsp;missing&nbsp;something&nbsp;or&nbsp;is&nbsp;this&nbsp;really&nbsp;the&nbsp;case?

In&nbsp;the&nbsp;meanwhile&nbsp;I&nbsp;bypassed&nbsp;the&nbsp;PostGisFeatureLayer&nbsp;and&nbsp;I&nbsp;am&nbsp;using&nbsp;ad-hoc&nbsp;queries&nbsp;and&nbsp;stored&nbsp;procedures&nbsp;passing&nbsp;the&nbsp;returned&nbsp;"geometry/geometries"&nbsp;to&nbsp;MapSuite&nbsp;features&nbsp;like&nbsp;"Dim&nbsp;aPoint&nbsp;as&nbsp;new&nbsp;PointShape(\<wellknowtext\>wellknowtext)"&nbsp;.&nbsp;That&nbsp;works&nbsp;great&nbsp;and&nbsp;I&nbsp;probably&nbsp;understand&nbsp;why&nbsp;(if&nbsp;this&nbsp;is&nbsp;again&nbsp;the&nbsp;case)&nbsp;there&nbsp;is&nbsp;no&nbsp;enhanced&nbsp;PostGisFeatureLayer&nbsp;constructor&nbsp;that&nbsp;accepts&nbsp;addhoc&nbsp;queries&nbsp;or&nbsp;stored&nbsp;procedures&nbsp;i.e&nbsp;itterating&nbsp;through&nbsp;the&nbsp;ResultSet&nbsp;and&nbsp;creating&nbsp;Features&nbsp;is&nbsp;not&nbsp;that&nbsp;big&nbsp;deal.&nbsp;&nbsp;However,&nbsp;trying&nbsp;to&nbsp;optimise&nbsp;my&nbsp;code&nbsp;I&nbsp;thought&nbsp;that&nbsp;it&nbsp;is&nbsp;better&nbsp;to&nbsp;return&nbsp;the&nbsp;HEX&nbsp;"well&nbsp;known&nbsp;binary"&nbsp;from&nbsp;PostGress/PostGis&nbsp;than&nbsp;the&nbsp;lengthy&nbsp;"well&nbsp;known&nbsp;text".&nbsp;In&nbsp;such&nbsp;a&nbsp;scenario,&nbsp;I&nbsp;could&nbsp;use&nbsp;the&nbsp;"Dim&nbsp;aPoint&nbsp;as&nbsp;new&nbsp;PointShape(byte[])"&nbsp;constructor.&nbsp;Well&nbsp;here&nbsp;is&nbsp;the&nbsp;question,&nbsp;before&nbsp;I&nbsp;reinvent&nbsp;the&nbsp;wheel,&nbsp;and&nbsp;write&nbsp;my&nbsp;own&nbsp;code&nbsp;to&nbsp;convert&nbsp;the&nbsp;HEX&nbsp;to&nbsp;unsigned&nbsp;bytes,&nbsp;is&nbsp;there&nbsp;any&nbsp;hellper&nbsp;function&nbsp;in&nbsp;MapSuite&nbsp;that&nbsp;does&nbsp;the&nbsp;conversion&nbsp;from&nbsp;HEX&nbsp;to&nbsp;byte/binary?\</wellknowtext\>

Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;patience&nbsp;and&nbsp;for&nbsp;the&nbsp;help

Kind&nbsp;Regards

Yiannis

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [October 25, 2010, 8:07am UTC](https://community.thinkgeo.com/t/postgis-ad-hoc-queries-and-hex-wkb-to-bytes/1470/2 "2010-10-25T08:07:56Z")

</div>

Yiannis,

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;welcome&nbsp;you&nbsp;to&nbsp;ThinkGeo&nbsp;Desktop&nbsp;Discussion&nbsp;forum.  
I&nbsp;think&nbsp;we&nbsp;got&nbsp;the&nbsp;ad&nbsp;hoc&nbsp;queries&nbsp;supported&nbsp;since&nbsp;last&nbsp;public&nbsp;release,&nbsp;I&nbsp;am&nbsp;not&nbsp;sure&nbsp;you&nbsp;are&nbsp;using&nbsp;the&nbsp;right&nbsp;version&nbsp;for&nbsp;it.&nbsp;This&nbsp;feature&nbsp;should&nbsp;be&nbsp;added&nbsp;for&nbsp;MsSql,&nbsp;Postgre,&nbsp;Oracle&nbsp;Dbs,&nbsp;see&nbsp;more&nbsp;details&nbsp;from&nbsp;following&nbsp;link:  
[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6131/afv/topic/Default.aspx)  
I&nbsp;am&nbsp;sorry&nbsp;to&nbsp;say&nbsp;that&nbsp;we&nbsp;do&nbsp;not&nbsp;provided&nbsp;the&nbsp;APIs&nbsp;to&nbsp;convert&nbsp;Hex&nbsp;to&nbsp;byte,&nbsp;while&nbsp;I&nbsp;searched&nbsp;on&nbsp;the&nbsp;Google&nbsp;and&nbsp;found&nbsp;that&nbsp;this&nbsp;code&nbsp;snippet&nbsp;was&nbsp;provided&nbsp;in&nbsp;some&nbsp;site,&nbsp;see&nbsp;following&nbsp;website:  
[codeproject.com/KB/recipes/hexencoding.aspx](http://www.codeproject.com/KB/recipes/hexencoding.aspx)  
[bytes.com/topic/net/answers/106096-hex-byte](http://bytes.com/topic/net/answers/106096-hex-byte)  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
Thanks.  
Yale

---

<div class="post-metadata">

**Author:** ![Ioannis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/i/ad7895/32.png) [@Ioannis](https://community.thinkgeo.com/u/Ioannis)\
**Post date:** [October 26, 2010, 4:25am UTC](https://community.thinkgeo.com/t/postgis-ad-hoc-queries-and-hex-wkb-to-bytes/1470/3 "2010-10-26T04:25:59Z")

</div>

Hello&nbsp;Yale,&nbsp;  
  
  
  
Thank&nbsp;you&nbsp;for&nbsp;the&nbsp;answer.&nbsp;Thanks&nbsp;for&nbsp;the&nbsp;effort&nbsp;you&nbsp;put&nbsp;as&nbsp;well&nbsp;to&nbsp;provide&nbsp;me&nbsp;for&nbsp;the&nbsp;links&nbsp;on&nbsp;doing&nbsp;the&nbsp;hex&nbsp;to&nbsp;bin&nbsp;conversion.&nbsp;I&nbsp;had&nbsp;already&nbsp;devised&nbsp;such&nbsp;a&nbsp;solution&nbsp;and&nbsp;I&nbsp;was&nbsp;just&nbsp;hoping&nbsp;that&nbsp;it&nbsp;might&nbsp;be&nbsp;part&nbsp;of&nbsp;MapSuite.&nbsp;I&nbsp;suggest&nbsp;you&nbsp;include&nbsp;the&nbsp;implementation&nbsp;for&nbsp;the&nbsp;HEX&nbsp;to&nbsp;byte&nbsp;conversion&nbsp;in&nbsp;one&nbsp;of&nbsp;your&nbsp;next&nbsp;releases&nbsp;since&nbsp;it&nbsp;is&nbsp;a&nbsp;very&nbsp;common&nbsp;horror&nbsp;story&nbsp;seen&nbsp;in&nbsp;code-sources&nbsp;over&nbsp;and&nbsp;over&nbsp;again,&nbsp;people&nbsp;to&nbsp;just&nbsp;consider&nbsp;streaming&nbsp;a&nbsp;huge&nbsp;wkt&nbsp;over&nbsp;the&nbsp;net&nbsp;as&nbsp;a&nbsp;natural&nbsp;way&nbsp;to&nbsp;do&nbsp;things.&nbsp;That&nbsp;has&nbsp;an&nbsp;impact&nbsp;on&nbsp;performance&nbsp;that&nbsp;may&nbsp;indirectly&nbsp;been&nbsp;attributed&nbsp;to&nbsp;your&nbsp;product&nbsp;without&nbsp;of&nbsp;course&nbsp;this&nbsp;to&nbsp;be&nbsp;the&nbsp;case.&nbsp;  
  
  
  
As&nbsp;for&nbsp;the&nbsp;main&nbsp;issue.&nbsp;It&nbsp;is&nbsp;my&nbsp;understanding&nbsp;from&nbsp;the&nbsp;link&nbsp;you&nbsp;sent&nbsp;me&nbsp;that&nbsp;if&nbsp;I&nbsp;want&nbsp;to&nbsp;use&nbsp;an&nbsp;ad&nbsp;hoc&nbsp;query&nbsp;I&nbsp;must&nbsp;"intercept"&nbsp;one&nbsp;via&nbsp;the&nbsp;event&nbsp;and&nbsp;essentially&nbsp;"re-write"&nbsp;the&nbsp;parameters&nbsp;i.e&nbsp;query&nbsp;string&nbsp;(statement),&nbsp;query&nbsp;type&nbsp;etc.&nbsp;As&nbsp;I&nbsp;was&nbsp;not&nbsp;aware&nbsp;of&nbsp;this&nbsp;implementation&nbsp;I&nbsp;just&nbsp;did&nbsp;what&nbsp;I&nbsp;described&nbsp;earlier&nbsp;on&nbsp;my&nbsp;post&nbsp;i.e&nbsp;issuing&nbsp;a&nbsp;normal&nbsp;sql&nbsp;and&nbsp;itterating&nbsp;through&nbsp;the&nbsp;return&nbsp;geometries&nbsp;creating&nbsp;Features&nbsp;adding&nbsp;them&nbsp;to&nbsp;an&nbsp;inMemorylayer.&nbsp;So&nbsp;the&nbsp;questions&nbsp;now&nbsp;are&nbsp;two:&nbsp;&nbsp;  
  
1)&nbsp;What&nbsp;are&nbsp;the&nbsp;advantages&nbsp;of&nbsp;using&nbsp;the&nbsp;MsSql2008FeatureLayer&nbsp;than&nbsp;what&nbsp;I&nbsp;did&nbsp;  
  
2)&nbsp;Why&nbsp;going&nbsp;through&nbsp;the&nbsp;event&nbsp;and&nbsp;not&nbsp;via&nbsp;a&nbsp;normal&nbsp;constructor?&nbsp;Without&nbsp;having&nbsp;work&nbsp;with&nbsp;the&nbsp;new&nbsp;version&nbsp;I&nbsp;assume&nbsp;that&nbsp;I&nbsp;still&nbsp;need&nbsp;to&nbsp;create&nbsp;a&nbsp;"new"&nbsp;MsSql2008FeatureLayer&nbsp;maybe&nbsp;with&nbsp;a&nbsp;fake&nbsp;"query",&nbsp;then&nbsp;to&nbsp;intercept&nbsp;the&nbsp;event&nbsp;and&nbsp;then&nbsp;to&nbsp;re-write&nbsp;the&nbsp;statement.&nbsp;  
  
  
  
Looking&nbsp;forward&nbsp;to&nbsp;hearing&nbsp;from&nbsp;you&nbsp;  
  
Kind&nbsp;Regards&nbsp;  
  
Yiannis

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [October 26, 2010, 7:19am UTC](https://community.thinkgeo.com/t/postgis-ad-hoc-queries-and-hex-wkb-to-bytes/1470/4 "2010-10-26T07:19:40Z")

</div>

Yiannis,

Thanks&nbsp;for&nbsp;your&nbsp;input&nbsp;and&nbsp;suggestions,&nbsp;I&nbsp;appreciate&nbsp;it&nbsp;very&nbsp;much.&nbsp;I&nbsp;will&nbsp;report&nbsp;this&nbsp;to&nbsp;our&nbsp;development&nbsp;team&nbsp;with&nbsp;some&nbsp;Gemini&nbsp;issue&nbsp;added,&nbsp;hope&nbsp;we&nbsp;can&nbsp;get&nbsp;it&nbsp;added&nbsp;later&nbsp;in&nbsp;our&nbsp;products.  
1)&nbsp;I&nbsp;think&nbsp;it&nbsp;will&nbsp;be&nbsp;the&nbsp;same&nbsp;if&nbsp;you&nbsp;return&nbsp;all&nbsp;the&nbsp;features&nbsp;from&nbsp;the&nbsp;SQL&nbsp;server&nbsp;and&nbsp;store&nbsp;them&nbsp;into&nbsp;InMemoryFetureLayer&nbsp;with&nbsp;using&nbsp;the&nbsp;MsSqlFeatureLayer&nbsp;directly&nbsp;if&nbsp;no&nbsp;special&nbsp;reason&nbsp;stops&nbsp;us&nbsp;to&nbsp;do&nbsp;this.&nbsp;While&nbsp;in&nbsp;some&nbsp;special&nbsp;cases&nbsp;we&nbsp;cannot&nbsp;do&nbsp;this&nbsp;in&nbsp;this&nbsp;way,&nbsp;for&nbsp;example:  
Case&nbsp;1:&nbsp;Data&nbsp;is&nbsp;too&nbsp;huge&nbsp;to&nbsp;store&nbsp;in&nbsp;memory.&nbsp;We&nbsp;only&nbsp;need&nbsp;to&nbsp;get&nbsp;the&nbsp;features&nbsp;within&nbsp;the&nbsp;current&nbsp;extent&nbsp;dynamically&nbsp;when&nbsp;we&nbsp;use&nbsp;the&nbsp;MsSqlFeatureLayer,&nbsp;while&nbsp;when&nbsp;we&nbsp;try&nbsp;to&nbsp;store&nbsp;it&nbsp;in&nbsp;InmemoryFeturealyaer,&nbsp;it&nbsp;has&nbsp;a&nbsp;cut&nbsp;edge&nbsp;demand&nbsp;of&nbsp;memory&nbsp;usage&nbsp;when&nbsp;very&nbsp;huge&nbsp;number&nbsp;of&nbsp;records&nbsp;involved.  
Case&nbsp;2:&nbsp;Performance&nbsp;requirement.&nbsp;When&nbsp;we&nbsp;use&nbsp;the&nbsp;MsSqlFetureLayer,&nbsp;we&nbsp;can&nbsp;get&nbsp;the&nbsp;performance&nbsp;boost&nbsp;with&nbsp;the&nbsp;table&nbsp;indexed.&nbsp;Of&nbsp;course,&nbsp;we&nbsp;can&nbsp;do&nbsp;it&nbsp;in&nbsp;the&nbsp;same&nbsp;way&nbsp;for&nbsp;the&nbsp;InmemoryFeatureLayer&nbsp;by&nbsp;calling&nbsp;the&nbsp;API&nbsp;BuildIndex&nbsp;in&nbsp;InmemoryFeatureaLayer,&nbsp;while&nbsp;it&nbsp;always&nbsp;need&nbsp;some&nbsp;time&nbsp;to&nbsp;get&nbsp;it&nbsp;indexed&nbsp;built&nbsp;when&nbsp;some&nbsp;large&nbsp;data&nbsp;involved.  
Case3:&nbsp;Data&nbsp;can&nbsp;be&nbsp;updated&nbsp;or&nbsp;added/deleted&nbsp;at&nbsp;the&nbsp;same&nbsp;time&nbsp;when&nbsp;the&nbsp;application&nbsp;is&nbsp;running,&nbsp;I&nbsp;believe&nbsp;it&nbsp;is&nbsp;possible&nbsp;while&nbsp;very&nbsp;difficult&nbsp;to&nbsp;get&nbsp;the&nbsp;data&nbsp;updated&nbsp;instantly&nbsp;when&nbsp;using&nbsp;the&nbsp;way&nbsp;you&nbsp;mentioned.  
2)&nbsp;Basically&nbsp;the&nbsp;principal&nbsp;reason&nbsp;for&nbsp;this&nbsp;event&nbsp;is&nbsp;letting&nbsp;user&nbsp;have&nbsp;some&nbsp;way&nbsp;to&nbsp;trace&nbsp;what&nbsp;sql&nbsp;statement&nbsp;sent&nbsp;to&nbsp;the&nbsp;server&nbsp;when&nbsp;facing&nbsp;some&nbsp;issues,&nbsp;also&nbsp;this&nbsp;event&nbsp;can&nbsp;do&nbsp;some&nbsp;advanced&nbsp;stuff&nbsp;dynamically&nbsp;which&nbsp;cannot&nbsp;be&nbsp;implemented&nbsp;using&nbsp;normal&nbsp;ways&nbsp;because&nbsp;its&nbsp;flexibility&nbsp;of&nbsp;sending&nbsp;out&nbsp;the&nbsp;sql&nbsp;statement&nbsp;and&nbsp;letting&nbsp;the&nbsp;user&nbsp;change&nbsp;it&nbsp;to&nbsp;what&nbsp;they&nbsp;want&nbsp;dynamically.  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
Thanks.  
Yale

---

<div class="post-metadata">

**Author:** ![Ioannis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/i/ad7895/32.png) [@Ioannis](https://community.thinkgeo.com/u/Ioannis)\
**Post date:** [October 26, 2010, 8:18am UTC](https://community.thinkgeo.com/t/postgis-ad-hoc-queries-and-hex-wkb-to-bytes/1470/5 "2010-10-26T08:18:18Z")

</div>

Yale,  
  
  
  
I&nbsp;can&nbsp;see&nbsp;your&nbsp;points&nbsp;and&nbsp;thank&nbsp;you&nbsp;for&nbsp;your&nbsp;response.&nbsp;What&nbsp;I&nbsp;understand&nbsp;is&nbsp;that&nbsp;the&nbsp;MsSqlFetureLayer/PosGresFeatureLayer&nbsp;has&nbsp;the&nbsp;"ability"&nbsp;to&nbsp;feed&nbsp;back&nbsp;automatically&nbsp;the&nbsp;"extent"&nbsp;of&nbsp;the&nbsp;map,&nbsp;thus&nbsp;any&nbsp;query&nbsp;is&nbsp;spatially&nbsp;constrained&nbsp;within&nbsp;this&nbsp;extend&nbsp;while&nbsp;in&nbsp;my&nbsp;"solution"&nbsp;I&nbsp;have&nbsp;to&nbsp;manually&nbsp;pass&nbsp;the&nbsp;extend&nbsp;as&nbsp;a&nbsp;parameter&nbsp;to&nbsp;my&nbsp;custom&nbsp;queries&nbsp;and&nbsp;always&nbsp;do&nbsp;something&nbsp;like:  
  
  
  
`Dim cmd As Npgsql.NpgsqlCommand = New Npgsql.NpgsqlCommand("select astext(pos_point) from core_pos_info where st_contains(ST_GeomFromText('" & searchArea & "', 4326), pos_point) = true", conn)`

Where&nbsp;_searchArea&nbsp;_is&nbsp;the&nbsp;extend&nbsp;of&nbsp;the&nbsp;MapSuite&nbsp;viewport&nbsp;expressed&nbsp;as&nbsp;a&nbsp;shape.&nbsp;In&nbsp;anycase&nbsp;I&nbsp;will&nbsp;download&nbsp;the&nbsp;updated&nbsp;version&nbsp;and&nbsp;give&nbsp;it&nbsp;a&nbsp;go.&nbsp;I&nbsp;hope&nbsp;I&nbsp;will&nbsp;come&nbsp;back&nbsp;with&nbsp;some&nbsp;good&nbsp;"results"&nbsp;and/or&nbsp;"examples"

&nbsp;

Thanks&nbsp;again

Yiannis

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [October 27, 2010, 7:46am UTC](https://community.thinkgeo.com/t/postgis-ad-hoc-queries-and-hex-wkb-to-bytes/1470/6 "2010-10-27T07:46:29Z")

</div>

Yiannis,

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;feedback.  
Just&nbsp;go&nbsp;ahead&nbsp;and&nbsp;have&nbsp;a&nbsp;try&nbsp;on&nbsp;the&nbsp;latest&nbsp;version&nbsp;and&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know&nbsp;if&nbsp;any&nbsp;more&nbsp;questions&nbsp;or&nbsp;ideas.  
Thanks.  
Yale
