B4J Question strin.compareTo i do while loop - LukaszK (first post)    Dec 28, 2025 error occur on line 72 :
java.lang.NullPointerException: Cannot invoke "String.compareTo(String)" because "<local1>._line" is null... B4A Question B4A como puedo iniciar un ejemplo CompareTo (Other As String) As Int - Erel (first post)    Feb 17, 2019 https://www.b4x.com/android/forum/pages/results/?query=string.compareto... B4A Question Change fontScale on elongated screens - Ilya G. (first post)    Jun 28, 2024 I tried different things, but the condition does not work ? if (_scale.equals("1.78")) { override.fontScale = 0.5f; } if (_scale.toString().equals("1.78")) { override.fontScale = 0.5f; } if (_scale.toString().equals("1.78".toString())) { override.fontScale = 0.5f; } if (_scale.toString().compareTo("1.78") == 0) { override.fontScale = 0.5f; } if (_scale.toString().compareTo("1.78".toString()) == 0) { override.fontScale... Bug? NumberFormatException on a string date - emexes (first post)    Jan 17, 2023   (1 reaction) No problem to convert everything to long values, but why java looks at my string as a number? Use String method .CompareTo() https://www.b4x.com/android/help/core.html#string_compareto I too used to wonder why String comparison operators = and <> were implemented but < <= >= > were not.... B4A Library [B4X] BCTextEngine / BBCodeView - Text engine + BBCode parser + Rich Text View - Erel    Dec 31, 2024   (72 reactions)   tags: Label BBCode, text style, RTF component, B4X, ritchtext, rich text issue where setting BBLabel.Text to an empty string didn't remove the text. - v1.71 - New Font tag... platform library with several features: - Text drawing engine. - Text layout engine. - BBCode.../android/forum/threads/b4x-bbscrollinglabel-rich-text-scrolling-label.114310/ https://www.b4x.com... related to text. You can for example use it as an alternative to CSBuilder where you have more control over the text drawing. I will explain the main use case of BBCodeView. Our layout is usually made... B4J Question a question about regex - drgottjr (first post)    Aug 28, 2020   (5 reactions) because they are not the same thing. ismatch is like "=", matcher is like "contains". or in b4x terms: ismatch ---> string.compareto() = 0, matcher ---> string.contains()... B4J Question Using To in Select Cases? - OliverA (first post)    Jan 5, 2022   (1 reaction) Is TRange Then
If O.As(TRange).Low.As(String).CompareTo(Val) <= 0 And O.As(TRange).High.As(String).CompareTo(Val) >= 0 Then
Return True
Else If O = Val Then... B4J Question java.lang.NumberFormatException: empty String - alwaysbusy (first post)    Mar 20, 2022   (1 reaction) Do not compare the strings, but the double values. Strings comparison is done differently in java e.g. with string1.CompareTo(String2) > 0. But as you do already put them in doubles anyway, use these values. If kef1>kef2 And kef2>1.41 Then Alwaysbusy... B4J Question Issue Comparing Two Variables of Custom Type - emexes (first post)    Jul 14, 2019 Why return an Int? Because that's what the String .CompareTo returns. If it's good enough for Java, that's good enough reason for me.... B4A Question Getting file name of image loaded in an ImageView - Andrew (Digitwell) (first post)    Jul 10, 2024   (1 reaction) as string = ImageViewQuarterPastChimes.tag 'or as in the example from post 1 If (ImageViewQuarterPastChimes.tag.as(string).compareto("light-on-icon.png") = 0) Then ' Do something... Page: 1   2   3   4   5   6   7   |