Exp=f
@p1=
@c1=
@p2=
@c2=
@va=temp_a
@vb=temp_b
@vc=temp_c
@vd=temp_d
@end
                                        
//YCompareStringNoCase
//ĿģַбȽ(ԴСд)
//s1ҪȽϵַ֮һ
//s2ҪȽϵַ֮һ
//lenҪȽϵĳ
//ؽΪ0ַȣΪs1>s2,Ϊ,s1<s2
//LastError=0ȷLastErrorΪμֲ
int @ytclass::YCompareStringNoCase(AnsiString  S1,AnsiString  S2,int len)
{
		TCHAR* s1 = new char[ S1.Length() + 1 ];strcpy(s1, S1.c_str() );
        TCHAR* s2 = new char[ S2.Length() + 1 ];strcpy(s2, S2.c_str() );
	LastError=0;
	TCHAR *temp_s=s1;
	//ֲ
	BYTE temp_a,temp_b,temp_c,temp_d;
	//ȡַĳ
	int s_len=strlen(s1);
	//ַĳȶʱиֵԱԺмܴ
	if(s_len<=0){LastError=-3;delete [] s1;delete [] s2;return 0;}//ô
	if(s_len>0){temp_a=*s1;}//ȡַĵһֵtemp_a;
	if(s_len>1){s1++;temp_b=*s1;}//ȡַĵڶֵtemp_b;
	if(s_len>2){s1++;temp_c=*s1;}//ȡַĵֵtemp_c;
	if(s_len>3){s1++;temp_d=*s1;}//ȡַĵĸֵtemp_d;
	int result;//ֲ,ؽ
	//ⲽa,bĸ͵ڲ,b,c,dԡ
	//@fļе@pλдмʽ
	result=CalculateEx_3("@f.lll",@p, 16,&temp_a,&temp_b,&temp_c,&temp_d,KeyPath,2000);
	@1
	if (result!=0)
	{
		LastError= result;//ô
	}
	//ڼĽصtemp_a,temp_b,temp_c,temp_d
	//ٽͻصַ
	s1=temp_s;
	if(s_len>0){*s1=temp_a;}//temp_aֵŵַ;
	if(s_len>1){s1++;*s1=temp_b;}//temp_bֵŵַ
	if(s_len>2){s1++;*s1=temp_c;}//temp_cֵŵַ
	if(s_len>3){s1++;*s1=temp_d;}//temp_dֵŵַ
	s1=temp_s;
	//ȽַǷ
		result=	strnicmp(s1,s2,len);
        delete [] s1;delete [] s2;
        return result;
}