FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 25
→
DICAS 2115 - WINDEV WEBDEV MOBILE - STRING 51 - StringSplit
DICAS 2115 - WINDEV WEBDEV MOBILE - STRING 51 - StringSplit
Débuté par amarildo, 19 mai 2019 14:50 - Aucune réponse
Connectez-vous…
amarildo
#1
Membre enregistré
535 messages
Popularité : +14 (14 votes)
Posté le 19 mai 2019 - 14:50
BOM DIA,SEJA BEM VINDOS A MAIS UMA VIDEO AULA. ESSA AULA ESTA SENDO GRAVADA NO DIA 19 05 2019. DICA 2115.
VOU MOSTRAR COMO EXTRAIR DADOS STRING COM SEPARADOR.
DICAS 2115 - WINDEV WEBDEV MOBILE - STRING 51 - StringSplit
// btn_stringsplit
s
ESTADOS_BRASIL
is string
=
""
s
ESTADOS_BRASIL
=
"AC|AL|AM|AP|BA|CE|ES|EX|GO|MA|MG|MS|MT|PA|PB|PE|PI|PR|RJ|RN|RO|RR|RS|SC|SE|SP|TO"
arrARRAY_ESTADOS_BRASIL
is array of strings
arrARRAY_ESTADOS_BRASIL
=
StringSplit
(
s
ESTADOS_BRASIL
,
"|"
)
TableDeleteAll
(
TABLE_
ESTADOS
)
n
QUANTIDADE_TOTAL
is int
=
ArrayCount
(
arrARRAY_ESTADOS_BRASIL
)
FOR NPOSICAO
=
1
TO
n
QUANTIDADE_TOTAL
TableAddLine
(
TABLE_
ESTADOS
,
arrARRAY_ESTADOS_BRASIL
[
NPOSICAO
]
)
END
ErpMatos - TgsSistemas
email: amarildo.matos@gmail.com
whats: 51984197742
Youtube: Amarildo Matos
http://www.amarildomatos.com.br
www.windev.com
https://www.pcsoft.fr/webinaires.htm…
https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/page/1.awp
https://www.windev.com/windev/WD-Express.htm
https://www.windev.com/windevmobile/WM-Express.htm
https://groups.google.com/forum/…
http://windevdesenvolvimento.blogspot.com.br/2017/07/menu-blog.html
https://doc.windev.com/en-US/…
Signaler
0
0
→ Revenir à WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte