|
| HOMEPAGE | INDICE FORUM | REGOLAMENTO | ::. | NEI PREFERITI | .:: | RSS Forum | RSS News | NEWS web | NEWS software | |
| PUBBLICITA' | | | ARTICOLI | WIN XP | VISTA | WIN 7 | REGISTRI | SOFTWARE | MANUALI | RECENSIONI | LINUX | HUMOR | HARDWARE | DOWNLOAD | | | CERCA nel FORUM » | |
![]() |
#1 |
Senior Member
Registrato: 02-08-2003
Loc.: Lamezia Terme
Messaggi: 344
![]() |
Aiuto su funzione stringa...
Faccio un esempio: Ho la seguente stringa: "IeriSonoAndatoAMare" Voglio la seguente stringa risultante: "Ieri Sono Andato A Mare" Grazie molte! ![]() |
![]() |
![]() |
![]() |
#2 |
Gold Member
Top Poster
Registrato: 07-04-2000
Loc.: Padova-Vicenza
Messaggi: 4.814
![]() |
Fatto in velocità con il vecchio QBASIC, non so se ti può essere di utilità:
Codice:
stringa$ = "IeriSonoAndatoAMare" stringaout$ = "" FOR i = 1 TO LEN(stringa$) junk$ = MID$(stringa$, i, 1) IF ASC(junk$) < 91 AND ASC(junk$) > 64 THEN junk$ = CHR$(32) + junk$ END IF stringaout$ = stringaout$ + junk$ NEXT i
___________________________________
Con il PC risolvo molti problemi che prima non avevo. - Coltiva Linux che Windows si pianta da solo! |
![]() |
![]() |
![]() |
#3 |
Senior Member
Registrato: 02-08-2003
Loc.: Lamezia Terme
Messaggi: 344
![]() |
Grazie per la routine.
Bella la soluzione del codice ascii ! ![]() |
![]() |
![]() |
![]() |
#4 |
Gold Member
WT Expert
Registrato: 09-01-2002
Loc.: None of your business
Messaggi: 5.505
![]() ![]() ![]() |
Si ma guarda che è l'unica.
Codice:
S$ = "IoSonoAndatoAlMare" For i& = Asc("A") To Asc("Z") S$ = Replace(S$, Chr$(i&), Chr$(32) & Chr$(i&), , , vbBinaryCompare) Next |
![]() |
![]() |
![]() |
Utenti attualmente attivi che stanno leggendo questa discussione: 1 (0 utenti e 1 ospiti) | |
Strumenti discussione | |
|
|
![]() |
||||
Discussione | Autore discussione | Forum | Risposte | Ultimo messaggio |
[C] funzione system() con stringa variabile | UG0_BOSS | Programmazione | 2 | 23-05-2007 18.48.00 |
AIUTO! Mi è sparita la funzione opzioni cartella..dal menù strumenti, come posso far? | antarius | Windows 7/Vista/XP/ 2003 | 11 | 12-04-2005 10.00.29 |
aiuto su Funzione in c! | SkAkKo | Programmazione | 2 | 27-09-2004 22.43.23 |
Doppia funzione nella stringa Body | Gabry | Programmazione | 1 | 29-11-2003 22.55.08 |
AIUTO funzione di Cerca.. o SEARCH bloccata | atir1974 | Windows 9x/Me/NT4/2000 | 0 | 06-10-2003 17.40.29 |