My problem now is with DBUtils.ExecuteMap
When I run DBUtils.ExecuteMap and there is no records this functions returns NULL but
The problem here is DBUtils.ExecuteMap return NULL but when it ask for NULL doesnt execute true condition because m,map, is not initialized not null so execute the else but how there is no initialize get error
When I run DBUtils.ExecuteMap and there is no records this functions returns NULL but
PHP:
Dim m As Map
m.Initialize
m = DBUtils.ExecuteMap(Main.SQL, "SELECT * FROM t_press",Null)
If m = Null Then 'Null will return if there is no match'
Main.prefer.puid=0
Else
'
Main.prefer.Initialize
Main.prefer.codigo=m.Get("f_codigo")
Main.prefer.nombre=m.Get("f_nombre")
End If
PHP:
java.lang.RuntimeException: Object should first be initialized (Map).