SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    2 Dimensional Array

    Hi,

    have some trouble to create 2 Dimensional Array directly.

    Tried any variations but not catch the solution for my development plan.

    i can fill a 1 Dimensional Array like this
    <font class="small">Code:</font><hr /><pre>
    Tab_Array1(1) = "1"
    Tab_Array1(2) = "2"
    .
    .
    . </pre><hr />

    Also i can fill it like this. But only if the variable is a variant. Otherwhise i have trouble to assign the array
    <font class="small">Code:</font><hr /><pre>
    Tab_Array1 = Array("1", "2", "3", "4")
    </pre><hr />

    my wish is to fill a Array Variable like this
    <font class="small">Code:</font><hr /><pre>
    Tab_Array = Array(("1", "2", "3", "4"), _
    ("2", "4", "7", "9"))
    </pre><hr />
    I just want to simulate in the code like a table. Later i will overgive function this variable which it would compare automatically the content of the table in a application with the datas in the codes.

    Sorry for my bad english. But i hope anyone can understand my plan and give me a hint.

    Thx a lot.

  2. #2
    Advanced Member
    Join Date
    Jan 2002
    Location
    Detroit, Michigan
    Posts
    522
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: 2 Dimensional Array

    Not quite what you want but close.

    <font class="small">Code:</font><hr /><pre>Dim myArray()
    ReDim myArray(5)

    myArray(1) = Array("a", "b", "c", "d")
    myArray(2) = Array("e", "f", "g", "h")</pre><hr />
    //*eggbox

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:39 PM.

Copyright BetaSoft Inc.