Wish [B4X] BBCode (AND EVERYWHERE) comment lines on methods & properties routines - LucaMs (first post)    Feb 12, 2021   (1 reaction) 1 - logically properties are properties, variables are variables;
2 - very often you have to check the value assigned to a property, prevent incorrect values;
3 - not rarely you will have a read-only property, you cannot do it with a public variable.
Last but not least... you cannot add comment lin B4A Question [Solved] FCM notifications - LucaMs (first post)    Feb 28, 2022 Well, a variable is volatile data, as you know, and this is a "big" difference (and use case). B4A Question Class variables - William Lancee (first post)    Feb 23, 2022 Define your UP variable in Class_Globals as Public UP As Byte.
Then when you receive data you can compare it to CMDS.UP
B.T.W. your thread title is not informative. If my answer is not useful consider changing the title. 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 B4J Question (Solved) Get the Name of a List - Star-Dust (first post)    Sep 10, 2021   (3 reactions) The name a variable or object / class is something that appears in the ide environment but is lost in compilation, so in execution asking for a name makes no sense. This is especially true for those variables that are indicated by reference. You can achieve a similar thing with the Map though. Nam B4A Question Initial state of variables - Jeffrey Cameron (first post)    Sep 06, 2018   (3 reactions) Simple variables (e.g. int, Boolean, long, string, etc.) behave that way. Object variables (e.g. List, Map, etc.) usually have an "Initialize" method you must invoke before you may use them. For example:
Dim MyInt as Int
Dim MyList as List
MyInt = 1
Mylist.Initialize
MyList.Add(MyInt)
@Erel has B4A Question Can't reconnect network socket within service - OliverA (first post)    Mar 04, 2021   (1 reaction) All variables. Global/Process_Globals are global to the module at hand. The color coding of the variables in the IDE should give you a hint of their scope. B4R Tutorial Memory, Variables and Objects - Erel    Aug 13, 2019   (5 reactions) Memory is a big issue in Arduino.
1. The available RAM is very small compared to other platforms. For example the Uno has 2k of RAM.
2. There is no sophisticated heap management which means that usage of dynamic memory should be avoided.
3. Programs are expected to run for a long time with zero mem B4A Tutorial [B4X] Public variables, custom types, ... - LucaMs (first post)    Dec 19, 2023 Tip? Hint? To everyone, including me. The name of variables, class members, views, etc. it is important but it will never be exhaustive, it will not always be enough to make you understand exactly what they are and, in the case of properties, what values to assign to them. The one in the image B4A Question Process Globals variables - agraham (first post)    Jun 20, 2022   (1 reaction) Not true I'm afraid. Variables declared in Sub Globals in an Activity are local to the Activity and are lost when the Activity is destroyed. Variables declared in Sub Process_Globals in an Activity belong, as the name implies, to the entire process and are only lost when the entire process is destro Page: 1   2   3   4   5   6   7   Powered by ColBERT |