[Gambas-user] RE:Thanks Alex

isy21 at ...1082... isy21 at ...1082...
Mon Aug 22 04:07:59 CEST 2005


On Saturday 20 August 2005 14:34, Alex Schaller wrote:
> Hello 
Ignatius,
>
> You can use the following code to get all the information 
about your
> Ethernet Cards.
> You have to use one of the newer Gambas 
Development versions. I was using
> 1.9.16. The syntax of the SHELL 
command changed.
>
> You have to put a Button and a textarea on the 
form and paste the code
> below in the module.
>
> Hope this helps.
>
> 
Alex
>
>
> ' Gambas class file
> PRIVATE myProcess AS Process
> PRIVATE 
sResult AS String
>
> PUBLIC SUB Button1_Click()
>
>   DIM sExeString 
AS String
>   DIM icnt AS Integer
>
>    textarea1.Clear
>
>   FOR icnt 
= 0 TO 4
>     sExeString = "/sbin/ifconfig eth" & icnt
>     textarea1.
Text = textarea1.Text & "--------eth-" & icnt & "--------" &
> gb.
NewLine
>     myProcess = SHELL sExeString WAIT FOR READ
>   NEXT
>
> 
END
>
>
> PUBLIC SUB Process_Error(sData AS String)
>     'Here you can 
add some error code
> END
>
> PUBLIC SUB Process_Read()
>
>   DIM sLine 
AS String
>
>   LINE INPUT #LAST, sLine
>      textarea1.Text = 
textarea1.Text & sLine & gb.NewLine
> END
>
>
> 
-------------------------------------------------------
> SF.Net email 
is Sponsored by the Better Software Conference & EXPO
> September 19-
22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile 
& Plan-Driven Development * Managing Projects & Teams * Testing & QA
> 
Security * Process Improvement & Measurement * http://www.sqe.
com/bsce5sf
> _______________________________________________
> Gambas-
user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.
sourceforge.net/lists/listinfo/gambas-user


Thanks Alex, i will try in 
my project.




More information about the User mailing list