Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.visual-basic > #19723
| Newsgroups | it.comp.lang.visual-basic |
|---|---|
| Date | 2020-03-11 08:29 -0700 |
| References | <ec1ed8f7-b78a-4033-9026-c9307a18cf3e@googlegroups.com> <r4ar1r$60k$1@gioia.aioe.org> <addf4cf7-db26-4009-9527-9e3f3a57b209@googlegroups.com> <1qdr0020krx8b.hi9728iuza7z$.dlg@40tude.net> |
| Message-ID | <d94a6772-e7e9-4a02-943d-89d8bdb9773e@googlegroups.com> (permalink) |
| Subject | Re: Estrazione dati da stringa |
| From | Marco75 <marcoporzi75@gmail.com> |
Il giorno mercoledì 11 marzo 2020 15:57:29 UTC+1, Andrea (Work) ha scritto:
> Il Wed, 11 Mar 2020 07:09:14 -0700 (PDT), Marco75 ha scritto:
>
> > Ciao,
> > A č una variabile stringa?
> >
> > io stavo procedendo cosě..
> > Dim Macina As String = LbUltimeRicette.SelectedItem.ToString
> > LabelMac.Text = Macina.Substring(0, 2)
> >
> > per gli altri 2 campi ci stavo lavorando.
> > il tuo codice sembra molto semplice e snello ma non capisco come assegnare A()
>
> Dim testo as string="13-LINEA-AMM ROSSA"
> Dim vett = testo.Split("-"c)
> Dim a = vett(0)
> Dim b = vett(1)
> Dim c = vett(2)
>
> vett č un array di stringhe, se i - sono variabili devi controllare
> GetUpperBound.
perfetto, ora funziona tutto... avevo commesso un errore nel prelevare la stringa iniziale da leggere e dividere
grazie
Marco
Back to it.comp.lang.visual-basic | Previous | Next — Previous in thread | Next in thread | Find similar
Estrazione dati da stringa Marco75 <marcoporzi75@gmail.com> - 2020-03-11 01:58 -0700
Re: Estrazione dati da stringa gio <pictures.ww@gmail.com> - 2020-03-11 15:02 +0100
Re: Estrazione dati da stringa Marco75 <marcoporzi75@gmail.com> - 2020-03-11 07:09 -0700
Re: Estrazione dati da stringa "Andrea (Work)" <andrea.isworkDELETEME@gmail.invalid> - 2020-03-11 15:57 +0100
Re: Estrazione dati da stringa Marco75 <marcoporzi75@gmail.com> - 2020-03-11 08:29 -0700
Re: Estrazione dati da stringa "Andrea (Work)" <andrea.isworkDELETEME@gmail.invalid> - 2020-03-11 16:04 +0100
csiph-web