String. CompareTo (Other As String) As IntLexicographically compares the two strings.Returns a value less than 0 if the current string precedes Other. Returns 0 if both strings are equal. Returns a value larger than 0 if the current string comes after Other. Note that upper case characters precede lower case characters. Examples: "abc".CompareTo("da") ' < 0 "abc".CompareTo("Abc") ' > 0 "abc".CompareTo("abca")' < 0 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... 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    May 21, 2023   (68 reactions)   tags: Label BBCode, text style, RTF component, B4X, ritchtext, rich text BBLabel.Text to an empty string didn't remove the text. - v1.71 - New Font tag: https://www....,:". - BBCodeDesigner v1.00 - B4J utility that helps with writing and testing BBCode strings... 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... 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 Comparing between tow Times ? - emexes (first post)    Nov 15, 2022   (1 reaction) Label1.Text.CompareTo(label2.Text) >= 0 Then 'works as long as both strings are *exactly... this issue? DateTime.DateFormat = "hh:mm" Label1.Text= DateTime.Time(DateTime.Now) label2.Text= "02:30" If Label1.Text >= label2.Text Then Label3.Text = "The time is pased" End If Actually, you were close here; sadly, string comparisons... have got you over the line: DateTime.DateFormat = "hh:mm" Label1.Text= DateTime.Time... B4A Tutorial [B4X] TextEditor - Save and load external files - Erel    Sep 10, 2023   (37 reactions) -list-of-other-related-methods.129897/#content Allow other apps to view text files using this app.../android/forum/threads/picking-external-documents-with-documentpickerviewcontroller.99365 Share the text...-with-activityviewcontroller.73159/#content This also allows saving the text with the Files app. Allow other apps to view text files using this app: https://www.b4x.com/android/forum/threads/open-external... B4A Question Like Syntax - ronell (first post)    Jun 13, 2017   (1 reaction) Dim text1, text2 As String text1 = "a" text2 = "b" Log(text1.CompareTo(text2)) 56627 try those ..... Page: 1   2   3   4   5   6   7   |