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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • 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.