Patch level : 4.0 914
Files correlati : ba7.exe cg2.exe Ricompilazione Demo : [ ] Commento : Aggiunto il file relations.ini da piazzare in recdesc che contiene le relazioni tr i file. Uyilizzato nel postino. git-svn-id: svn://10.65.10.50/trunk@16363 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									a916acb2f1
								
							
						
					
					
						commit
						d203edbc08
					
				@ -9,6 +9,7 @@
 | 
			
		||||
#include <golem.h>
 | 
			
		||||
#include <netsock.h>
 | 
			
		||||
#include <recarray.h>
 | 
			
		||||
#include <relation.h>
 | 
			
		||||
#include <sheet.h>
 | 
			
		||||
#include <tabutil.h>
 | 
			
		||||
#include <utility.h>
 | 
			
		||||
@ -433,7 +434,21 @@ TFilter_expr::TFilter_expr(TAutomask& m, int logicnum, const char* expr)
 | 
			
		||||
      logicnum = LF_TABCOM;   // Niente errori fatali, se possibile
 | 
			
		||||
      
 | 
			
		||||
    const TRectype rec(logicnum);
 | 
			
		||||
    for (int i = 0; i < numvar(); i++) if (!rec.exist(varname(i)))
 | 
			
		||||
 | 
			
		||||
		for (int i = 0; i < numvar(); i++)
 | 
			
		||||
		{
 | 
			
		||||
			const TFixed_string name(varname(i));
 | 
			
		||||
			int num = logicnum;
 | 
			
		||||
			bool ok = rec.exist(name);
 | 
			
		||||
 | 
			
		||||
			if (!ok)
 | 
			
		||||
			{
 | 
			
		||||
				const TFieldref f(name, 0);
 | 
			
		||||
				int num = table2logic(f.id());
 | 
			
		||||
				const TRectype join(num);
 | 
			
		||||
				ok = join.exist(f.name());
 | 
			
		||||
			}
 | 
			
		||||
			if (!ok)
 | 
			
		||||
			{
 | 
			
		||||
				_error = 883;
 | 
			
		||||
				TString msg;
 | 
			
		||||
@ -442,6 +457,7 @@ TFilter_expr::TFilter_expr(TAutomask& m, int logicnum, const char* expr)
 | 
			
		||||
				break;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user