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
Bookmarks