Need equivalent from b4Ppc, to B4a

Cableguy

Expert
Licensed User
Longtime User
I need to convert this line:
Images=StrRemove(Images,Pointer,1) to b4 android....

Pointer is...well...a pointer i set, and I need to ofset by one...
 

maXim

Active Member
Licensed User
Longtime User
Hi Cableguy,

this can be a solution:

B4X:
Sub StrRemove(xString As String, xStartIndex As Int, xCount As Int)

    Dim s1 As String
    Dim s2 As String

    s1 = xString.SubString2(0, xStartIndex)
    s2 = xString.SubString(xStartIndex + xCount)

    Return (s1 & s2)

End Sub
 
Last edited:
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Thanks for the reply, in the meanwhile, I had found the solution, concatenating two strings...pretty close to what you got
 
Upvote 0

doraneko

Member
Licensed User
Longtime User
I need Help!

Next equations are Ok in B4PPC, but not in B4A.

b = 22 * ( h / 100 )^2
s = w^0.444 * h^0.663 * (88.83 /10000)

Please teach me!
 
Upvote 0

aj11

Member
Licensed User
Longtime User
Ticks in both versions

I am using simultaneously HP Ipaq(Win mobile) and Sony reader(Android) for sending also date datas. Sorting is much easier with tics, but they are different in both versions.

Any suggestions how to equalize these in B4A to B4PPC?

Thanks in advance.
Ales
 
Upvote 0
Top