The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Enumerating Block Contents (xAP Framework.NET)



On Thu, 23 Jun 2005 13:21:20 -0400, "Sullivan, Glenn"
<gsullivan@xxxxxxx> wrote:

>I am writing my own MSDE xAP Logger service... I couldn't get the xAP
>Logger to work for me, so I figured "It can't be that hard."
>
>Is there an easy way to enumerate (separately) the value pairs of a xAP
>block, using xAP Framework.net?
>
>Basically, is there a similar .Item(index as integer) property that I'm
>missing?

I've added this facility and quite heavily adjusted the way the
name/value pairs are stored internally to xFx. I've tidied up the
interface which was a bit messy TBH, which may lead to a few very
small compilation errors from the next build, but they're very easy to
resolve. I generally try and resist breaking changes like this, but I
should have got this right in the first place and it needs fixing at
some point.

Changing the way the pairs are stored has meant that xFx no longer
re-orders them. xAPplications shouldn't, I believe, care about the
order the pairs arrive in, but this has been a much requested fix. As
a bonus it retains the case of the pair names so "Text=Some
words" no
longer becomes "text=Some words". Small but long overdue.

The tidying up the interface allows you to access pairs by name or
index now, so you enumerate them in a few ways to suit your code.

I'm going to do some more testing here first but the next release will
feature these changes.

HTH,

S
--
Stuart Booth <stuart@xxxxxxx>
xAPFramework.NET - a xAP software development framework for .NET

http://www.xapautomation.org/ 
     http://www.xapframework.net/




xAP_Development Main Index | xAP_Development Thread Index | xAP_Development Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.