G
Guest
Hi,
I have a question regarding the DIM statement.
I know that you can dim a variable as a datatype for example "Dim X as string"
But I now have a table e.g. "Names" with lets say 1 field. This field is
"Name" and its datatype is "Text". This table has 5 rows with the following
values "John", "Mike", "Andrea", "Bob", "Anna".
This table is dynamic and can get different values from time to time. That
is that it can get more names, so more records.
So, this is what I want to do. I want to DIM each value as a string. This
must happen in code. The following has to be done automatically:
Dim John as String
Dim Mike as String
Dim Andrea as String
Dim Bob as String
Dim Anna as String
And if the table gets more values, also those values have to be declared
with the Dim statement automatically.
Can anyone out there help me with this problem.
I am in the middle of a project and I am stuck!
Thanks
I have a question regarding the DIM statement.
I know that you can dim a variable as a datatype for example "Dim X as string"
But I now have a table e.g. "Names" with lets say 1 field. This field is
"Name" and its datatype is "Text". This table has 5 rows with the following
values "John", "Mike", "Andrea", "Bob", "Anna".
This table is dynamic and can get different values from time to time. That
is that it can get more names, so more records.
So, this is what I want to do. I want to DIM each value as a string. This
must happen in code. The following has to be done automatically:
Dim John as String
Dim Mike as String
Dim Andrea as String
Dim Bob as String
Dim Anna as String
And if the table gets more values, also those values have to be declared
with the Dim statement automatically.
Can anyone out there help me with this problem.
I am in the middle of a project and I am stuck!
Thanks