B4J Question Arrays (of Strings and Numbers)

The_Librarian

New Member
Hi All

After a long sojourn into the realm of sysadminny things, I want to reactivate the programmer side of myself as I am looking at a career change.

Basically I have experience (basic) in programming with Assembler (basic) Pascal (good) and C (somewhere above basic).

Now I want to play (and fool) around in B4J to see what I can break and so on.

My first question is where do I find information on how to create arrays of strings and numbers?

TIA

Ook
 

Star-Dust

Expert
Licensed User
Longtime User
Example
B4X:
Dim s(6) as string
Dim n(10) as int ' also as float or double

For i = 0 to n.lenght-1
    N(i)=i + 1
Next

S(0)="Hallo"
Log(s(0))
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…