PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
Aula 1021 - Windev - String 33 / ... - Extrai string com separador - StringSplit/ChaîneDécoupe
Aula 1021 - Windev - String 33 / ... - Extrai string com separador - StringSplit/ChaîneDécoupe
Started by amarildo, Jan., 03 2017 9:08 AM - No answer
Connect yourself…
amarildo
#1
Registered member
535 messages
Popularité : +14 (14 votes)
Posted on January, 03 2017 - 9:08 AM
//Extrair Substring de uma String com separador
SAI_
Texto
=
[
França, Portugal, Alemanha, País de Gales,Brasil
]
tab
Paises_array is
array of strings
//Criando uma Array de paises
tab
Paises_array
=
StringSplit
(
SAI_
Texto
,
","
)
FOR x
=
1
TO
ArrayCount
(
tab
Paises_array
)
//Percorrer a array dos paises
TableAddLine
(
TABLE_
PAIS
,
tab
Paises_array
[x]
)
END
////Frances
//tabPaises_array_f est tableau de chaînes
//tabPaises_array_f = ChaîneDécoupe(SAI_Texto, ", ")
//POUR x=1 A TableauOccurrence(tabPaises_array_f)
// TableAjouteLigne(TABLE_PAIS,tabPaises_array_f[x])
//FIN
http://doc.pcsoft.fr/fr-FR/?1000022322&name=ChaineDecoupe
http://windevdesenvolvimento.blogspot.com.br/2017/01/aula-1021-windev-string-33-extrai.html
Message modified, January, 03 2017 - 9:08 AM
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text