[Gambas-user] How to "Me.Close" with "Shell" or "Exec"?

GMail adamnt42 at ...626...
Fri Apr 20 12:53:11 CEST 2012


On Fri, 2012-04-20 at 03:13 -0700, abbat wrote:
> Hi, 
> 
> Public Sub Form_Open()
> Dim a As String = 4
> Dim b As String = 4
> 
> If a > b Then
>   
>   Else
>     'Shell "ls"
>     Exec ["ls"]
>     Me.Close
> Endif
> End 
> 
> How to "Me.Close"
> 
> Thanks
> 
Removing irrelevant code, I get 

Public Sub Form_Open()

  If True then 
    Exec ["ls"]
    Me.Close
  EndIf

End

or better

Public Sub Form_Open()

  Exec ["ls"]
  Me.Close

End

both of which seem to execute perfectly well (i.e. as expected) here.

Please explain your problem again.

cheers
Bruce





More information about the User mailing list