Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.visual-basic > #18487
| X-Received | by 10.129.102.137 with SMTP id a131mr12753005ywc.17.1440801999158; Fri, 28 Aug 2015 15:46:39 -0700 (PDT) |
|---|---|
| X-Received | by 10.50.26.103 with SMTP id k7mr98971igg.9.1440801999127; Fri, 28 Aug 2015 15:46:39 -0700 (PDT) |
| Path | csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!62no120771qgj.1!news-out.google.com!nt1ni17841igb.0!nntp.google.com!se8no306225igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | it.comp.lang.visual-basic |
| Date | Fri, 28 Aug 2015 15:46:38 -0700 (PDT) |
| In-Reply-To | <0ad21972-9e08-413e-b141-1df77459589d@googlegroups.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=79.0.48.162; posting-account=eitZdgoAAAC6C9CXmyhLNaQM3MgI3eZM |
| NNTP-Posting-Host | 79.0.48.162 |
| References | <f723c505-d007-4d13-8312-68c4d7f93579@googlegroups.com> <0ad21972-9e08-413e-b141-1df77459589d@googlegroups.com> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <e33c7a3d-ebc1-4a72-8bb6-ed8a109a60eb@googlegroups.com> (permalink) |
| Subject | Re: Parsing di un file di testo |
| From | Luca D <antaniserse@yahoo.it> |
| Injection-Date | Fri, 28 Aug 2015 22:46:39 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-Received-Bytes | 2060 |
| X-Received-Body-CRC | 2380941671 |
| Xref | csiph.com it.comp.lang.visual-basic:18487 |
Show key headers only | View raw
Il suggerimento iniziale di "mmm" è quello più pratico, e se lo combini con l'uso di collection/dictionary (=liste con chiave) è presto fatto. Come dice lui, lo Split iniziale ti da un array in cui nelle posizioni pari hai tutti i canali, nelle dispari tutti i valori; fai un ciclo "for i = 1 to ubound(xx) step 2" per recuperare la coppia canale (i-1) e valore (i), con il primo che funge da chiave; fai un test sulla collection per vedere se quella chiave esiste o meno e di conseguenza crei un nuovo array o accodi all'array corrispondente a quella chiave ( la collection è un insieme di Variant, e i Variant possono diventare array se applichi ReDim... Non ho VB6 qui sottomano ma dovrebbe accettarli). In una singola passata ottieni una griglia (collection di array) con i valori raggruppati come serve
Back to it.comp.lang.visual-basic | Previous | Next — Previous in thread | Next in thread | Find similar
Parsing di un file di testo aren.hoxha@gmail.com - 2015-08-27 14:48 -0700
Re: Parsing di un file di testo aren.hoxha@gmail.com - 2015-08-27 15:14 -0700
Re: Parsing di un file di testo mmm <mmm@john.bluto.blutarsky.it> - 2015-08-28 09:48 +0200
Re: Parsing di un file di testo "Sauro" <vicchi@crsscala.it> - 2015-08-28 10:19 +0200
Re: Parsing di un file di testo Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2015-08-28 15:21 +0200
Re: Parsing di un file di testo aren.hoxha@gmail.com - 2015-08-28 14:56 -0700
Re: Parsing di un file di testo Luca D <antaniserse@yahoo.it> - 2015-08-28 15:46 -0700
Re: Parsing di un file di testo Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2015-08-29 14:43 +0200
csiph-web