Thx Arnaud,

that's one of the way outs I had in mind.
It is not very clean since I have to initialise a variable to test if another variable has been initialised

But the more general question remains:

Isn't there a way in Realbasic to test if a datatype has been initialised? Something like IsSet or IsInited.

Coming to think of it (because it is similar to this problem), how will a database pass a Null value to an integer when I do:

myInt = RS.Field("anIntegerField").IntegerValue. I would hope for an IsNull

hmmm, strange


Bart



  Dim myText As String
  Dim myLeft,myTop,myWidth,myHeight As Integer

dim Initialized as boolean

  if App.CurrentWindow <> Nil then
    myLeft = App.CurrentWindow.Left
    myTop = App.CurrentWindow.Top
    myWidth = App.CurrentWindow.Width
    myHeight = App.CurrentWindow.Height

Initialized=true

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to