Android Question String to Int array

JNG

Member
Licensed User
Hi!

I have Following String
Dim Val as string = "60Dip,100%x-54%x-60Dip,18%x,18%x,18%x"
DIM Lval() as Int

How can I convert and store these value as int in Lval()

Regards
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
Please use [code]code here...[/code] tags when posting code.

Where does the string come from? Why do you need to do it at runtime?

You need more than a simple parsing code. You need to evaluate the expressions.
Check this (it doesn't support dip and percentage units): https://www.b4x.com/android/forum/threads/54629/#content
 
Upvote 0

Similar Threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…