moongodess
Freshman
- Joined
- Dec 23, 2004
- Messages
- 40
In my project I have a collection with the texts to translate the controls.
This collection is filled when the program starts, with a number that identifies the text, and a default text.
To be easier for me, I need to do is in each form:
- define all control.tag (label, checkbox, or something similar) with a numeric value
- define all control.text with the default text
Create a sub called Translate (or something else) with something like this:
Dim a as integer, b as string
For each x in me.Controls
a = cint(x.tag)
b = cstr(x.text)
if (a > 0) then
a.text = trans(a, b)
end if
Next
where trans is the function that will return the translated text.
I tried to do this, exactly, and i saw that me.controls was not catching all the control, in the form. No label, no checkboxes, nothing!!
Does anyone has a suggestion, please???
This collection is filled when the program starts, with a number that identifies the text, and a default text.
To be easier for me, I need to do is in each form:
- define all control.tag (label, checkbox, or something similar) with a numeric value
- define all control.text with the default text
Create a sub called Translate (or something else) with something like this:
Dim a as integer, b as string
For each x in me.Controls
a = cint(x.tag)
b = cstr(x.text)
if (a > 0) then
a.text = trans(a, b)
end if
Next
where trans is the function that will return the translated text.
I tried to do this, exactly, and i saw that me.controls was not catching all the control, in the form. No label, no checkboxes, nothing!!
Does anyone has a suggestion, please???