>New Look Sprezz!!

>As I am sure may of you will have noticed, Sprezzatura have uploaded their new look web site. Whilst more content will be added over the next few weeks, I would urge anyone involved with OpenInsight development to subscribe to their brand new Sprezzatura Tech Blog.

I have moved the Sprezzatura blog link and David’s tech blog to the top of the links on my blog. Please let me know of any other blogs that you find useful with regards to developing with Revelation and I’ll include those in the link list as well.

>How to close a Window whose WRITE event sends a CLOSE event to the form?

>In this situation the Window will close properly if the user closes through the Write event. However, if the user closes using the “X” at the top right of the window, OpenInsight will prompt “Save Changes?”. If the user selects ‘Yes’, the Close calls Write, which then calls Close again. OpenInsight will debug when Close tries to run twice.

The Solution? Just ask the window if it is closing! Use retstack to see which programs are running, if WINDOW.CLOSE is in the stack, you are already closing. The code is as follows:

0001  declare function retstack
0002  * Pre-write … Do some stuff …
0003  Call Forward_Event()
0004  * Post-Write … Do some stuff …
0005  stack = retStack()
0006  cmd = “CLOSE.WINDOW”
0007  is_closing = IndexC(stack,cmd,1)
0008  if is_closing else
0009  Call Send_Event(@window, ‘CLOSE’)
0010  end

OpenInsight running under Windows 7

Whilst it is early days in the Windows 7 release cycle, I was pleased to learn yesterday that Revelation in the USA have already begun testing of OpenInsight 9.x with the forthcoming Universal Driver 4.6 on the current Windows 7 release candidate. These preliminary tests are proving very positive with OpenInsight showing no immediate signs of having any trouble running under the new version of Windows. More will be published to this blog as the testing continues and more information comes my way


>Did you know that from OpenInsight version 9.0.1 you can utilise JSON from within your OpenInsight applications. During the recent RUG in London, Mike showed how easy and fast JSON is within OpenInsight using a round-trip RSS feed example. JSON is becoming more and more popular as a replacement for XML as it is smaller, faster and easier to use. This is yet another check box that you can tick on your sales proposals when asked.

“JSON (pronounced /ˈdʒeɪsɒn/, i.e., “Jason”), short for JavaScript Object Notation, is a lightweight computer data interchange format. It is a text-based, human-readable format for representing simple data structures and associative arrays (called objects).” (Source – Wikipedia – http://en.wikipedia.org/wiki/JSON).