B4A Tutorial [B4X] Input dialogs with XUI Views - Erel    Jan 23, 2019   (20 reactions)   tags: XUI for text input. You can set a regex pattern that will be used to validate the input. The OK button... configuration for numeric inputs. There are 4 possible modes based on the 2 options: whole numbers and positive numbers. On B4A and B4i the keyboard type is set to best match the expected input type. Example: Sub btnWholePositive_Click Dim input As B4XInputTemplate input.Initialize input.lblTitle.Text = "Whole Positive:" input.ConfigureForNumbers(False, False... B4A Code Snippet [B4X] Exception To String, with Stack Trace - Erel    Jul 20, 2025   (14 reactions) an exception happens. You can show it for debug purposes or handle in other ways. Public Sub ExceptionToString(Exception As Object) As String #if b4i Dim sb As StringBuilder sb.Initialize sb.Append(Exception) Dim symbols As NativeObject If GetType(Exception) = "NSError...").RunMethod("callStackSymbols", Null) Else If GetType(Exception) = "NSException" Then symbols = Exception.As(NativeObject).RunMethod("callStackSymbols"... B4J Question malformed input for jdeps - Erel (first post)    Jul 14, 2021   (1 reaction) You should only use the built-in packager: Integrated B4JPackager11 - The simple way to distribute standalone UI apps Check the files in the Files folder. Is there any file with non-ASCII characters?... B4J Question java.lang.NumberFormatException: For input string: "null" Why is there an error when data can be found in the database? Thank you - Erel (first post)    Dec 18, 2023
Dim val1 As String = row(res.Columns.Get("BUMEN")) 'case is important in Map keys
Dim val2 As String = row(res.Columns.Get("FEIYONGGUIJI"))
Dim val3 As Double = row(res.Column... B4A Tutorial [B4X] xCLV - lazy loading with text input - Erel    Oct 24, 2019   (20 reactions)   tags: LazyLoading, Clv The attached B4J example demonstrates how to implement lazy loading with editable items. https://www.b4x.com/basic4android/images/java_nAZX0TSYJE.png There are several interesting points: - Layouts are reused. - A custom type is used to store all of the relevant information for each item. - The important code is in the VisibleRangeChanged event: Sub CustomListView1_VisibleRangeChanged (FirstIn... B4J Tutorial Msgbox / InputList - Erel    Dec 17, 2015   (25 reactions) /images/SS-2015-12-17_12.29.47.png InputList: Dim items As List = Array("Item #1", "Item #2", "Item #3", "Item #4") Dim res As Int = fx.InputList(MainForm, items... B4J Tutorial Unhandled exceptions - Erel    Mar 19, 2017   (12 reactions) Unhandled exceptions are exceptions that were thrown outside of Try / Catch blocks. Such exceptions cause the process to exit in all cases except of server applications. Starting from B4J v5.0 it is possible to catch such exceptions. This is done with the Application_Error sub (in the Main module): 'Return true to allow the default exceptions handler to handle the uncaught exception. Sub Application_Error (Error As Exception, StackTrace As String) As Boolean Return True End Sub... B4A Code Snippet [B4X] InputStream - Skip N Bytes - Erel    Mar 11, 2021   (2 reactions) This sub will skip N bytes from the stream. Usage example: you have an InputStream and you don't want the first 100 bytes. 'Returns the number of bytes skipped Sub SkipNBytes (Input As InputStream, N As Int) As Int Dim buffer(Min(N, 8000)) As Byte Dim count As Int Do While count < N Dim read As Int = Input.ReadBytes(buffer, 0, Min(buffer.Length, N - count)) If read = -1 Then Return count count = count + read Loop Return count End Sub... B4A Tutorial [B4X] [etp] Forms & User Input video tutorial - Erel    Apr 30, 2019   (15 reactions)   tags: form tutorial 333346078 More videos: https://www.b4x.com/etp.html The example app is attached. Note that the correct library that needs to be checked, except of B4XPreferencesDialog, is XUI Views. There is a mistake in the video that is later corrected.... B4J Question Notarizing Error : Running run.command (RuntimeException) java.lang.RuntimeException: Non-Java exception raised, not handled! - Erel (first post)    Jan 21, 2025   (1 reaction) If you are able to reproduce it with a small project then I will test it.... Page: 1   2   3   4   5   6   7   |