what about : EXDescription exDescription = ""; //extended datatype of type string ; exDescription = someMethod(); //some method returning a string return exDescription;
or even better : return someMethod(); // should be enough ;-) hth Tobias ________________________________ Von: [email protected] im Auftrag von JD Coetzer Gesendet: Di 30.01.2007 14:38 An: [email protected] Betreff: [development-axapta] Problems with "TwC: Validate access to return value from display/edit method." Hi everyone "TwC: Validate access to return value from display/edit method." is a best practice message that occur compiling at level 4 with Axapta 4.This is how my method look at the moment. EXDescription exDescription; //extended datatype of type string ; exDescription = someMethod(); //some method returning a string if(exDescription) return exDescription; else return ''; and I've tried this aswell : return (exDescription ? exDescription : ''); I would really appreciate it if anyone can help me. Logically I cannot see what is the problem and it is unfortunately compulsary to compile at this level. Thanks alot!! __________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com <http://voice.yahoo.com> [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]

