Jump to content
TS91

Procura em array

Recommended Posts

TS91

Boa tarde,

eu preciso de procurar um valor dentro de uma array e devolver todas as arrays com esse mesmo valor. Ex:

Dim cols as array = {{"Coluna Excell", "Tabela", "Campo"}, {"Coluna Excell", "Tabela", "Campo"}}

Precisso que devolva tudo o que diga tabela para dentro de array.

Cumprimentos,

Tiago Dias

Share this post


Link to post
Share on other sites
He B TeMy

Ah? Precisas de retirar um valor dentro do array e devolver um array? Não estás a falar de devolver apenas o valor?

Se sim...

for each item as string in cois
if item.contains("tabela") then
'faz o que quiseres com o item
End if
End for

Se preferires obter o item pelo index, usa o For Next em vez de For each Next.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.