MB Gurus,

I am having problems getting Dialog Remove to work the way I would like
it to.... The following is a sample of the MB application Im creating.
What I want to happen is for the the first Dialog to close when the
Search button is selected and the Search Dialog opens but I am unable to
achieve this. Can anyone help me? Im using MB 6.0 & MI 6.5.

Thanks for any assistance...

Sub Main
CLS
        Dialog Title " "
                Control Button Title "Search"   Calling button_handler
ID 1
                Control Button  Title "Open" Calling button_handler ID 2
End Sub


Sub button_handler
  Dialog Remove
        Do Case TriggerControl()
                Case 1
                Note    TriggerControl() + "  You pressed the Seach
Button"
                Call SearchDialog
          Case 2
                Note    TriggerControl() + "  You pressed the Open
Button"
        End Case
End Sub


Sub SearchDialog
Print "At Sub"

        Dialog Title "Seach for a table " 
                Control StaticText      Position 8,6      Title "Locate
a table by using any combination of the search criteria."
        Control StaticText
                Title "Keywords:  "
                Position 12,22
        Control EditText 
                Into stKeyword
                Width 80 
                ID 101
                Position 80, 22
        Control StaticText
                Title "File Name:  "
                Position 12,38
        Control EditText 
                Into stFilename
                Width 80 
                ID 101
                Position 80, 38
        Control OKButton
                Title "Search"
                Calling gosearch
                Position 114,94
        Control CancelButton
                Position 160,94

End Sub



Sub gosearch

Print stKeyword + "  " + stFilename

End Sub




Doug Pease
GISO
Livingstone Shire Council
P.O. Box 600
YEPPOON 4703
Australia

Ph   07 49399957
Fax 07 49393290


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to