Article View: free.it.visual-basic
Article #4013Re: Ip in text diverse
From: SimonenomiS
Date: Sun, 30 Sep 2001 14:26
Date: Sun, 30 Sep 2001 14:26
35 lines
2081 bytes
2081 bytes
"HoLaZ" <fioriroby@iol.it> ha scritto nel messaggio
news:TQrs7.3195$aE.1494005@news.infostrada.it...
> scusa, ma come posso dirgli di mettere i pezzi dell'ip in text1, text2 ecc
> ?!
Il modo migliore sarebbe quello di definire le creare una matrice di
textbox e assegnargli poi i valori mediante l'indice. In altre parole ti
crei 4 textBox impostandone le propriet๏ฟฝ Nome ed Indice in questo modo:
Nome | Indice
txtIP | 0
txtIP | 1
txtIP | 2
txtIP | 3
Poi nel programma scrivi:
...
Dim sIP As String
Dim sarrIP() As String
Dim i As Integer
sIP = "012.345.678.910"
sarrIP = Split(sIP, ".")
' eventuale controllo sulla correttezza dell'IP
For i = 0 To UBound(sarrIP)
txtIP(i).text=sarrIP(i)
Next
...
Ciao.
--------------------------------------------------
http://digilander.iol.it/SimonenomiS/Software.html
--------------------------------------------------
Technical Details
Message-ID:
<AYFt7.15306$C15.2001743@news.infostrada.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!nntp.infostrada.it!news.infostrada.it!not-for-mailReferences:
<sc7s7.3094$_42.149821@news.infostrada.it> <dgrs7.2758$aE.1136311@news.infostrada.it> <TQrs7.3195$aE.1494005@news.infostrada.it>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,358b0bea6140b405 X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2001-09-30 07:23:43 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!nntp.infostrada.it!news.infostrada.it!not-for-mail From: "SimonenomiS" <xxxxx@yyyyyy.zzz> Newsgroups: free.it.visual-basic References: <sc7s7.3094$_42.149821@news.infostrada.it> <dgrs7.2758$aE.1136311@news.infostrada.it> <TQrs7.3195$aE.1494005@news.infostrada.it> Subject: Re: Ip in text diverse Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <AYFt7.15306$C15.2001743@news.infostrada.it> Date: Sun, 30 Sep 2001 14:26:40 GMT NNTP-Posting-Host: 151.14.106.100 X-Complaints-To: abuse@iol.it X-Trace: news.infostrada.it 1001860000 151.14.106.100 (Sun, 30 Sep 2001 16:26:40 MET DST) NNTP-Posting-Date: Sun, 30 Sep 2001 16:26:40 MET DST Organization: [Infostrada]