public static void main(Args _args) { Dictionary dict = new Dictionary(); DictTable dt; DictField df; str name; //Scenario 1 - using object initialization //Table 10347 - CustTable //Field 1 - AccountNum df = new DictField(10347, 1); if(df) print("Scenario 1 - Field 1 exists"); else print("Scenario 1 - Field 1 does not exist"); //Field 219 - Does not exist df = new DictField(10347, 219); if(df) print("Scenario 1 - Field 2 exists"); else print("Scenario 1 - Field 219 does not exist"); //Scenario 2 - using tableObject and fieldObject dt = dict.tableObject(10347); df = dt.fieldObject(1); if(df) print("Scenario 2 - Field 1 exists"); else print("Scenario 2 - Field 1 does not exist"); df = dt.fieldObject(219); //This IF statement should fail if(df) //But instead it drops into here //And now we get a null reference exception if we try and use it name = df.name(); else print("Scenario 2 - Field 219 does not exist"); }