The way I do it is by shelling the ip command
At the prompt:
 
   ip addr | grep -w "inet"

I have redirected it to a file and parse items the lines
I have used SHELL ".." FOR READ and used PROCESS_READ
to parse the lines

Somebody may have something much more elegant.
-Fernando


---------- Original Message -----------
From: David Villalobos Cambronero <[email protected]>
To: Gambas Inglés <[email protected]>
Sent: Wed, 9 Sep 2009 07:52:43 -0700 (PDT)
Subject: [Gambas-user] Obtain my IP with Gambas

> Hi, is there an easy way to obtain my IP address?
> 
>  Regards
> 
> --
> David
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gambas-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to