[Gambas-devel] Net component patches
Ron Onstenk
ronstk at ...124...
Sun Nov 7 18:13:38 CET 2004
On Sunday 07 November 2004 16:36, Benoit Minisini wrote:
> On Saturday 06 November 2004 21:34, Daniel Campos wrote:
> Can I replace the name "ToIPv4" by "Format" ?
>
> Here is what I imagine:
>
> Net.Format("address")
>
> And in the future:
>
> Net.Format("address", Net.IPV4)
> Net.Format("address", Net.IPV6)
May I ask to consider the format with leading zero's as option.
i.e 1.2.123.25 -> 001.002.123.025
This while sorting of the IP in a list let occur 2.x.x.x after the 192.168.x.x
Net.Format("address", Net.IPV4, True)
Net.Format(IPaddress AS String, Optional Format AS Integer=IPV4, Optional LeadZero AS Boolean=False) as String
>
> What do you think ? Remember that I like short names :-)
LOL: But not the single letter class names :)
>
>
> > Regards,
> >
> > Daniel Campos
>
> Regards,
>
BTW: Good idea Daniel to implement it :)
Ron
More information about the Devel
mailing list