How do you declare a variable and assign a value at the same time?

rleiman

Well-Known Member
Licensed User
Longtime User
Here is some VB code:

B4X:
Dim strMyVariable As String = "Some text is in here"

Can you tell me how to do this in Basic4Android?

Thanks.
 

MikieK

Member
Licensed User
Longtime User
B4X:
Dim strMyVariable As String: strMyVariable = "Some text is in here"

I know the above works in process_globals
 
Upvote 0

kanaida

Active Member
Licensed User
Longtime User
Awesome lol... forever I've been trying to do that. Coming from .net -> a vb6ish style language feel dramatically verbose.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…