Posted: Sat Nov 08, 2003 6:37 am Post subject: SELECT ERROR!!!!!!!
Novice
Joined: 20 Aug 2003 Posts: 18
DECLARE rEnvVar REFERENCE TO Environment.Variables.Data[];
CREATE FUNCTION FnXYZ('val' CHAR,rEnvVar REFERENCE) RETURNS CHARACTER
BEGIN
BEGIN
DECLARE rEnvVar1 REFERENCE TO rEnvVar.Data1[];
DECLARE sCHAR1 CHARACTER;
DECLARE sCHAR2 CHARACTER;
SET rEnvVar1.FnI[] = (SELECT T.CHAR1,T.CHAR2 FROM Database.ARDH AS T WHERE T.ABS ='val' );
SET sCHAR1 = rEnvVar1.FnI[1].CHAR1;
SET sCHAR2 = rEnvVar1.FnI[1].CHAR2;
RETURN sCHAR1;
END;
Can anyone help me where this is wrong????
It gives error like: "The dynamic field reference supplied to the SET statement does not resolve to a non-list field in a modifiable message tree. The dynamic field reference supplied to the SET statement must resolve to a non-list field in a modifiable message tree. Ensure that only non-list references to modifiable trees are passed to the SET statement."
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum