Exp=f
@p1=
@c1=
@p2=
@c2=
@va=temp_a
@vb=b
@vc=c
@vd=d
@end
                                        
//YSetValue
//ĿģԱֵ
//aҪõֵ
//ؽҪõֵ
//LastError=0ȷLastErrorΪμֲ
long SoftKey::YSetValue(long a)
{
	LastError=0;
	BOOL b_negative=FALSE;//ֲڴǷ
	if(a<0){a=-a;b_negative=TRUE;}//ΪaΪȻø
	//ֲ
	BYTE temp_a;
	//a256ȡ
	//ΪCal_2ʽֻֽڱܳ256
	temp_a=(BYTE)(a-a/256*256);
	//aȥ
	//ΪʲôҪaȥأ
	//Ϊ׼ڼڲμӣaҪȥԼ
	a=a-temp_a;
	int result;//ֲ,ؽ
	BYTE b,c,d;
	srand( (unsigned)time( NULL ) );
	b = rand();c = rand(); d = rand();
	//@fļе@pλдмʽ
	result=Cal_2("@f",@p, 16,&temp_a,&b,&c,&d,KeyPath,2000);
	@1
	if (result!=0)
	{
		LastError= result;//ô
	}
	//ڼĽصtemp_a
	//ٽǰȥaӾͿˡ
	if(b_negative) return -(temp_a+a);//aΪֱtemp_aȻȡ;
	return temp_a+a;//Ϊ,ֱtemp_a
}