Results 1 to 9 of 9

Thread: array question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    52
    Posts
    944
    Rep Power
    111

    array question

    what's the difference between "dim heroes(10) as string" and "dim heroes as string" in parsing technology? for me it would be great to get more info about that one. you can't use both in my example "heroes(10)" and simple "dim heroes as string", but why don't thinbasic makes that important different?

    ' Empty GUI script created on 05-02-2012 10:14:40 by  (ThinAIR)
    
        Dim heroes(10) As String
        'Dim heroes As String ' variable name already exist (duplicated generic)
        ' heroes = "black widow"
        
        heroes(1) = "THOR "
        heroes(2) = "HULK "
        heroes(3) = "CAPTAIN AMERICA "
        MsgBox 0, heroes(1) +  heroes(2) + heroes(3)
        'MsgBox 0, heroes
    
    '    
    ' my question: 'heroes(10)' is an own variable type and 
    ' has to define extra in 'dim variableArray() as string' 
    ' And has his own assignment ?
    ' what's the difference in parsing between normal varialbe like 'heroes' and
    ' array type like 'heroes(10)' ?                                                                                                                
    ' 
    ' I thought that 'heroes(10)' and "heroes" as variable type must be entirely different things!? :)
    
    best regards, frank
    Attached Files Attached Files
    you can't always get what you want, but if you try sometimes you might find, you get what you need

Similar Threads

  1. Array question
    By TheOne in forum Tips and Tricks
    Replies: 5
    Last Post: 10-05-2013, 12:29
  2. array question multiple assignment
    By Lionheart008 in forum thinAir General
    Replies: 2
    Last Post: 19-03-2012, 10:21
  3. Using MAT on an array within a Union
    By dcromley in forum Core module
    Replies: 5
    Last Post: 09-04-2009, 11:51
  4. ARRAY SHUFFLE??
    By marcuslee in forum Core module
    Replies: 18
    Last Post: 07-09-2008, 05:30

Members who have read this thread: 1

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •