TypeDeclares a structure.Can only be used inside sub Globals or sub Process_Globals. Syntax: Type type-name (field1, field2, ...) Fields include name and type. Example: Type MyType (Name As String, Items(10) As Int) Dim a, b As MyType a.Initialize a.Items(2) = 123 Other [new feature] b4xlib - a new type of library - Erel    Nov 2, 2020   (68 reactions)   tags: b4xlib;libraries, b4x library, Erel compiled. Starting with B4A (8.80), B4i (v5.50), B4J (v7.00) and B4R (v3.50), a new type of libraries is available - b4x libraries. A b4x library is a simple zip file with: - Code modules. All types... B4A Library MPAndroidCharts - Various type of graphs / charts (Latest library V1.22 in post #1) - Johan Schoeman    Aug 5, 2020   (49 reactions)   tags: B4A Charts, chart graph, graficas Edit 6 Sep 2015: Post #3 adds Single Vertical Bar Charts and update for Pie Charts Edit 8 Sep 2015 Post #6 update for Single Vertical Bar Charts Edit 11 Sep 2015 Post #7 adds Single Line Charts Edit 12 Sep 2015 Post #8 update for Single Line Charts Edit 12 Sep 2015 Post #9 adds Single Horizontal Bar Charts Edit 12 Sep 2015 Post #11 adds Radar Charts Edit 13 Sep 2015 Post #12 update for Single Line... Share My Creation [B4J] MAGMA-KEY - Test your typing speed (game, source code included) - Magma    Oct 25, 2022   (8 reactions) 85927 Hi there... I ve created a small game (~4hours) with B4J (seems that is extremely easy to do something like that) - i think it is easier than Visual Basic because b4j comes with all libraries you want... In this game you can test your typing speed - your eyes - your brain Every time pressing wrong key loosing a life, also loosing life every time key "button keys sprites" go at bottom... When ... score goes up - speed of falling letters maximized ! - You can resize window... B4J Question [B4X] How to get a GUIDType Simple Type / GUID - imbault    Jan 10, 2018 Hi to all, I'm tryig to get this pattern : The GUIDType simple type is a string that is restricted by the following pattern: \{{8}-{4}-{4}-{4}-{12}\} I tried this code, which gives an error : java.lang.RuntimeException: Method: UUID not found in: java.util.UUID Dim jo As JavaObject Return jo.InitializeStatic("java.util.UUID").RunMethod("UUID", Null) Any clue, please... B4J Question Compiling Jar Library possibility to use Type/ReadB4XObject... ? - Magma    Jan 20, 2023 ... Well I am having a "class" but in class I am having a custom "Type"... edit: According to this... I can't use type and readb4xobject at a class... ? 1) I ve noticed if having the Type inside the class not working properly... if have it in "Main" works perfect... Type MyType(TIME1 As Long, aa As String) .... public sub mytest Dim mr As MyType..."... edit: No2 works - the call is right :) So I am stuck at (1)... Type not works as i want at my... Wish Initialize variable, types, list, etc. by the key word "new" - Alexander Stolte    Dec 4, 2019 Hey, i'm working with Visual Studio every day and there is a Feature to Initialize all with the keyword "new" for example: Dim str as new string Dim mytype as new nicetype You could initialize lists for example in the Process_Globals already at the declaration. Would that be possible someday?... Other B4J v8.30 BETA is available for download - Erel    Feb 28, 2023   (39 reactions) . New warning: "Comparison of Object to other types will fail if exact types do not match... B4J Library {B4X] A class to draw on canvas many types of arrows at any angle. - William Lancee    Aug 24, 2022   (19 reactions) Once again I found myself writing code to draw arrows on canvas. @klaus has provided a basic technique that I also use: define the set of points on the arrow as a path and then draw the path. https://www.b4x.com/android/forum/threads/draw-broken-line-arrow-head.43450/post-264259 I finally decided to write a more general class to do this job. It is a cross-platform design. It is small, about 120 lines of code. It's compactness is achieved by the use of a point object type. Points have x... Wish camelCase when generating type objects [SOLVED] - ilan    May 10, 2022 hi it is not so important but is it possible to follow the camelCase rule when we auto generate type objects? now the first letter is uppercase and everything else is lowercase. i always find myself fixing after generating type objects. it's not super important but it would save some time š 129023 https://en.wikipedia.org/wiki/Camel_case https://www.b4x.com/android/forum/threads/camelcase-when-generating-type-objects-solved.140455/post-889583... B4A Code Snippet [B4X] Get mime type by extension - Alexander Stolte    Sep 6, 2023   (11 reactions) If something is missing, I will gladly add the function. Log(GetMimeTypeByExtension("jpg")) Public Sub GetMimeTypeByExtension(Extension As String) As String Extension = Extension.Replace(".","").ToLowerCase Select Extension Case "jpg","png","gif","bmp","ico","svg","webp"... mime type") Return "" End Select... Page: 1   2   3   4   5   6   7   |