Replacing strings

Paladium

Member
Licensed User
Longtime User
Hi,

I still have problems thinking B4A instead of .net. Perhaps someone can give me his ideas here. Thanks for any help in advance.

I need a "function" that translates a text.

For example:

ADA ADAB BDA BA ZEZEAD -> D E G B T

I thought about two arrays searching the first string till " " then seek the index and take the string in the second array at the same index.

But I still have no idea how to do this in B4A. Does some of the genius' here got an idea? :sign0085::sign0104::sign0013:

Markus
 

Paladium

Member
Licensed User
Longtime User
Got it myself.

I use a list instead an array an put all regex.split strings into it.
Then search for the appeerance of the string in the list and translate it with
the character string.

Thanks.

Markus
 
Upvote 0
Top