Hello Leroy,
You need ShowWindow property to be zero. Setting it to 2 makes this a modeless form. Also, you can't use the unload() method to return the value. When you close the form, set the return value (thisform.returnValue) and then hide the form.
>>Your GetState form class needs to have its windowType property set to 1 (modal). Otherwise, the code after your show() will run, causing oMyState to go out of scope, which causes it to disappear :)
>
>I already have the windowType property set to 1.
>These are the list of properties that I have set:
>
>ShowWindow = 2
>DoCreate = .T.
>AutoCenter = .T.
>Caption = "Get State"
>TitleBar = 0
>WindowType = 1
>WindowState = 0
>AlwaysOnTop = .T.
>BackColor = 128,128,128
>thisstate = ('')
>al_state = ([])
>Name = "getstate"
>sa_label1.Visible = .F.
>sa_label1.Name = "sa_label1"
>
< snip >
Steve Gibson