null

  1. R

    Android Question How to return Null from Sub that returns String?

    I wrote a simple class that does the same as TextReader.ReadLine. It returns a string, just like TextReader.ReadLine. The return value from TextReader.ReadLine can be compared to Null, so for example in a loop: str = oTR.ReadLine If str = Null Then Exit Now I am trying to do the same with my...
  2. R

    Android Question B4XTable search for empty values(SOLVED)

    Just experimenting with the B4XTable. I added some extra options to search column values along these lines: For Each col As B4XTableColumn In VisibleColumns If col.Searchable Then For n = 0 To arrCheckConditions(c) - 1 strFind =...
  3. red30

    iOS Question Not possible to add Null value to map

    Map.Put("temp",Null) In B4i, it is not possible to add a Null value to a map. Why? It is possible in B4A and B4J, why can't I do it in B4i? Next, this map is converted to json and some of the points must contain a null value (this is required by the server to which I send it), but I cannot do...
  4. A

    Android Question confused in empty ,null , when query database ,

    i use such sentence to query access database in vb , it is , SELECT * FROM table_1 WHERE ( ((IIf(IsNull(value_1),'*' , field_1 Like '*' & value_1 & '*'))<>False) AND '((IIf(IsNull(value_2),'*', field_2 Like '*' & value_2 & '*'))<>False) ) i imitate it in b4a , i make attempts time and again...
  5. jroriz

    B4J Question [SOLVED] String DesignerProperty with no default value

    I'm trying to deal with a custom field, which has a string property with no default value. #DesignerProperty: Key: Campo, DisplayName: Campo, FieldType: String, DefaultValue: In the DesignerCreateView sub I need to know if this property has been filled. Log(Props.Get("Campo") <> "")...
  6. D

    Android Question Null and "" what is the best practice

    Hi, Guys I am in the process of cleaning up some old code (which does work). This code appears to use null or "" relating to strings in indicate they are empty. I remember reading a Post from Erel saying best not to use Null for some situations (but I can't find it) and I could have got it...
  7. Dave O

    Android Question testing for null vs using isInitialized?

    I'm not clear on the difference between testing an object for NULL vs. using isInitialized. I ran into this because I passed a Null value into a sub, but it crashed on an "object not initialized" error. Here's the code: tip1.addTipForArea(tempRect, Null, "foobar", "barfoo") Public Sub...
  8. Maodge

    Android Question [solved]question on "Null"

    pls look at the following code dim map1 as map dim s as string dim o as object map1.Initialize map1.Put("4","d") map1.Put("1","a") map1.Put("101","a") s = map1.get(1) ' s = null o = map1.Get(1) 'o = null If s<> Null Then Log("s is not null") Else Log("s...
Top