B4A Question Clear list, unexpected result? [Solved] - agraham (first post)    May 07, 2022   (4 reactions) There are two sorts of objects, primitives, like Ints, Doubles, Booleans etc, and object instances. Variables can be regarded as a memory address that stores a value. For variables declared as primitives the value stored is that of the primitive. For variables declared as instances the value is a p B4A Library [B4X] KVS - KeyValueStore library - Erel    Jul 21, 2021   (29 reactions) A key / value persistent store. The data is serialized using B4XSerializator and is stored in an internal database. The database can be shared between B4A, B4i and B4J. Using KVS is similar to using a Map. You initialize it once and then you can put or get items with Put, Get or GetDefault methods. Share My Creation B4J/ Lottie Animation - jkhazraji    Oct 31, 2023   (9 reactions) Hi everybody, It was a primitive (but painstaking, from scratch ) attempt to invite the stubborn lottie animations as guests to the b4j houses. They came shyly since they are beautiful, but robust, creatures which add a great glamor to the apps making them appealing. But, after all, it is worth a tr B4A Question How to add a primitive variable to a map (not its value)? [Solved] - OliverA (first post)    Apr 25, 2020   (1 reaction) Because that is how primitives work in B4X (and in Java). Primitives are not accessed via references, objects are. B4J Question [Solved] How to free memory after use? - chikega (first post)    Jan 09, 2023   (1 reaction) area Creating variables in Java Primitives and reference types Storing variables on the stack Current frame and current method Elements of the frame Values on the stack Primitives and wrapper classes Crea Wish Provide Non primitive members of custom types - Like C/C++ Structures. - agraham (first post)    Aug 07, 2022   (2 reactions) I don't understand your wish as custom types can already include non-primitive items. Indeed you do in your example code.
Also Java, and hence B4X can only pass parameters by value.
In the case of a non-primitive type the value of a variable is a reference to the object instance. The point of pas B4J Library [B4X] KVS2 / KeyValueStore 2 - Simple & Powerful Local Datastore - Erel    Jul 16, 2020   (41 reactions) Use GetEncrypted to get an encrypted value. If you want to put bitmaps then use PutBitmap and GetBitmap. The supported types of objects are: Lists, Maps, Strings, primitives (numbers), user defined types and arrays (only arrays of bytes and arrays of objects are supported). Custom types should be B4A Question ByRef Planned? - Erel (first post)    Oct 29, 2015   (1 reaction) Strings are objects so they are passed by reference. However strings are immutable. If you want to modify the string then you should use StringBuilder.
Primitives = Numeric variables, booleans and chars. B4A Question [b4x] ByRef or Not ByRef - THAT is the question. - b4x-de (first post)    Sep 17, 2023   (2 reactions) A primitive value is always stored in a part of the memory that is called stack and has a limited scope i.e. to the current sub. That means it can only be used where is was "dimed". When you pass it to another sub it gets stored in the scope of this sub in the stack memory at a different address. An Other B4J v9.30 BETA is available for download - EnriqueGonzalez (first post)    Oct 26, 2021   (1 reaction) Yes but you are doing it with an s initialiSe and not initialiZe, and anyway it's better to write the object type, may be initialization is not even needed like with primitives Page: 1   2   3   4   5   6   7   Powered by ColBERT |