Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Dúvidas sobre cálculos, funções simples e aninhadas, fórmulas matriciais, etc.
#36013
Boa noite galera,

Estou programando um formulario no qual eu tenho diversas caixas de textos com os seguintes nomes (fm1, fm2, fm3 .... fm12). Dessa forma, para simplificar meu código gostaria de usar a função for

Tentei usar dessa forma:
For i = 1 To i = 12
Principal.fm(i).Visible = False
Next

Mas não deu certo. Tentei também fm"i"; "fm"(i) e nada...

Alguem sabe qual a forma certa de escrever isso, se é que possivel fazer isso.

OBS: "Principal" é o nome do formulario..

Grato!!
#36014
Experimente:
Código: Selecionar todos
For i = 1 To 12
 Principal.Controls("fm" & i).Visible = False
Next i
ou
Código: Selecionar todos
For i = 1 To 12
 Me.Controls("fm" & i).Visible = False
Next i
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord