Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exercicio - extrair numeros de sting
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00738448
Message ID:
00738620
Views:
17
Oi Pedro,

A função ALINES() pode fazer o parsing da string para você. Ela provê inclusive a facilidade de definir o caractere delimitador dos valores. O código abaixo coloca os valores de "lcString" em um array chamado "laValores":
lcString = "18,21,33,45,150,999"
ALINES(laValores, lcString, .T., ",")

LIST MEMORY LIKE laValores
Um abraço!
-----
Fabio Vazquez
http://www.fabiovazquez.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform