|  15.07.2010, 20:08 | #1 | 
| Участник | kamalblogs: Exists methods don’t need table declaration in Dynamics Ax 
			
			Источник: http://kamalblogs.wordpress.com/2010...d-declaration/ ============== Do you know when we use select statement for conditional checks, we don’t need to declare a variable if we use the same name as the table. Look at the example below to understand better. X++: static boolean SelectStatementInBooleanConditions() { //no declaration for table object has been made. boolean test; ; //testing a variable test = (select firstonly salesTable).salesId ? true : false; //if condition if ((select firstonly salesTable).recid) { return true; } //switch statement switch ((select firstonly salesTable).recid) { case 0: return true; case 1: return false; default: return false; } //return statement return ((select firstonly salesTable).recid); } Run the job and see that you dont get any errors…… 
				__________________ Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. | 
|  | 
|  15.07.2010, 20:57 | #2 | 
| Модератор | Цитата: 
		
			Run the job and see that you dont get any errors……
		
	   
				__________________ -ТСЯ или -ТЬСЯ ? | 
|  | 
|  15.07.2010, 21:13 | #3 | 
| Участник | 
			
			Sharing it today doesn't meant that i got to know it today vadik    | 
|  | 
|  16.07.2010, 10:28 | #4 | 
| Участник | 
			
			casperkamal, great to see you on this site! How about joining other topics here?    | 
|  | 
|  16.07.2010, 13:52 | #5 | 
| Участник | 
			
			Thanks for your welcome coolibin... I'll definitely join other threads too    | 
|  | 
|  | 
| 
 |