[Gambas-user] Shell script output to label text
Benoît Minisini
gambas at ...1...
Sat Apr 9 09:59:29 CEST 2011
> Hi ,
>
> I want shell script output, printed to the label text, Please help me..
>
> my code,,
>
> *******************************************************************
>
> PUBLIC SUB Form_Open()
> DIM sStr AS String
> SHELL "sh /home/dhana/foo.sh" TO sStr
> IF InStr(sStr, " ") THEN
> Label1.text =" " & sStr
> ELSE
> Label1.text = "Error"
> ENDIF
> END
>
> *******************************************************************
>
>
> I got error...please guide me..
>
> Advance thanks
>
> -Ganesh.
Please provide the error, at least! And, better, a full project source archive
to reproduce it.
Regards,
--
Benoît Minisini
More information about the User
mailing list