ivanomonti Expert Licensed User Longtime User May 1, 2020 #1 ciao Ragazzi, lo so che sono un rompipalle, ma ho bisogno di sapere una cosa, Debug mode esiste via codice? esempio B4X: if debugmode= true then var1 = "xxx" var2 = "aaa2 else var1=null var2=null end if
ciao Ragazzi, lo so che sono un rompipalle, ma ho bisogno di sapere una cosa, Debug mode esiste via codice? esempio B4X: if debugmode= true then var1 = "xxx" var2 = "aaa2 else var1=null var2=null end if
ivanomonti Expert Licensed User Longtime User May 1, 2020 #2 B4X: #IF DEBUG Public Const debugMode As Boolean = True #End If #IF RELEASE Public Const debugMode As Boolean = False #End If
B4X: #IF DEBUG Public Const debugMode As Boolean = True #End If #IF RELEASE Public Const debugMode As Boolean = False #End If
udg Expert Licensed User Longtime User May 1, 2020 #3 Se vuoi puoi includere direttamente il codice delle varianti di var1/var2 nei simboli condizionali #IF DEBUG/#IF RELEASE evitando di utilizzare debugMode
Se vuoi puoi includere direttamente il codice delle varianti di var1/var2 nei simboli condizionali #IF DEBUG/#IF RELEASE evitando di utilizzare debugMode
LucaMs Expert Licensed User Longtime User May 1, 2020 #4 Si può anche usare: B4X: ' Questo, ovviamente, nel caso avessi altre "variabili" da confrontare. #IF DEBUG Public Const debugMode As Boolean = True #ELSE IF RELEASE Public Const debugMode As Boolean = False #End If oppure B4X: #IF DEBUG Public Const debugMode As Boolean = True #ELSE Public Const debugMode As Boolean = False #End If
Si può anche usare: B4X: ' Questo, ovviamente, nel caso avessi altre "variabili" da confrontare. #IF DEBUG Public Const debugMode As Boolean = True #ELSE IF RELEASE Public Const debugMode As Boolean = False #End If oppure B4X: #IF DEBUG Public Const debugMode As Boolean = True #ELSE Public Const debugMode As Boolean = False #End If
ivanomonti Expert Licensed User Longtime User May 1, 2020 #5 wow grazie avevo risolto ma sempre utile per tutti