Code:
Error:
the Dim x as String is in the Process_Globals. Why cant I use it in the #If Java????
B4X:
#if java
public static void foo() {
try {
@SuppressWarnings("unused")
String command = "c:\\windows\\system32\\net.exe use f: " + x ;
Process p = Runtime.getRuntime().exec(command);
System.out.print("does not = 1");
} catch (Exception name) {
System.out.print("does not = 1");
}}
#End If
Error:
B4X:
src\b4j\example\main.java:216: error: cannot find symbol
String command = "c:\\windows\\system32\\net.exe use f: " + x ;
^
symbol: variable x
location: class main
the Dim x as String is in the Process_Globals. Why cant I use it in the #If Java????