Re: How to tie



Abble wrote:
Thanks, Lew, but I'd like if possible to not have to wrap my array.

Why not?

Here's another angle to the question: Can I dynamically declare new
array names, for instance, if I have a function that opens up a
database, can that function look up the names of the fields in the
database and make similar variables "appear"?
Something like:

OpenDB( "mydb.xyz" ); //mydb.xyz has in it a definition of arrays
A,B, C
// now at this point arrays A B C spring into existence and
populated.

D[i] = A[ i ] + B[i] + C[ i ]; // use A B c

What does declaring new names get for you that simply assigning new arrays to existing variables doesn't?

--
Lew
.



Relevant Pages

  • Re: MySQL Database problem (probably already solved in a message, but this is somewhat urgent)
    ... MySQL server has a database with a table, ... columns, an FSR column, and a password column. ... checked if the supposed arrays that were returned were actually arrays ...
    (comp.lang.php)
  • Re: Web Databases and Objects
    ... complex object classes (things that have Arrays, or Hashes within ... the simple "it's a database" stuff is fine.but when it comes to ... It includes the pretty standard Rails naming of methods in the controllers, it's in all of the tutorials online and elsewhere. ...
    (comp.lang.ruby)
  • Re: FOR ALL - Best Practices for navigating within code? -plus - Add-Ins that help?
    ... Nothin wrong with arrays.. ... focus on setting up datatable columns ... ... need to connect to database ... ... How do you quickly get to some routine you haven't ...
    (microsoft.public.dotnet.languages.vb)
  • Re: A nongeneric bounded string array type (in database code)
    ... > detail that the programmer needs to thing about and handle appropriately. ... depending on the database indeed. ... If you take arrays to the further level of columns x rows, ...
    (comp.lang.ada)
  • VB6 UDT
    ... defined user-defined types that correspond to the aforementioned database ... I then store the UDT objects in arrays, ... public TypeAArray() as TypeA ... ' Resize and Populate TypeAArray with TypeA UDTs ...
    (microsoft.public.vb.com)