Hello,
Does anybody else has this problem?
@If(x=y;@SetField(“myField”;“myValue”);“”);
The @SetField doesn’t set the field to the value indicated. myField is an editable text field.
Thank you for any help.
Hello,
Does anybody else has this problem?
@If(x=y;@SetField(“myField”;“myValue”);“”);
The @SetField doesn’t set the field to the value indicated. myField is an editable text field.
Thank you for any help.
Subject: @SetField in @If statements doesn’t work
Is myValue a literal string or a variable? If it’s a variable, then lose the quotation marks.
Subject: Don’t need @SetField…
I have actually stopped using @SetField with ND6. I do this and it works…
@If(something=somthingelse; FIELD yadda := blah1; FIELD yadda := blah2)
been working fine so far !
Subject: RE: Don’t need @SetField…
I have add some more details to my issue. I have an @If within an @If like the following:
@If(x=“”;@Prompt(“something”);@If(x=y;@Prompt(something");@SetField(“myField”;“myValue”));
Thanks
Subject: @SetField in @If statements doesn’t work
Make sure you declare the fieldname first. Like:
FIELD MyField:=MyField;
@If(x=y;@SetField(“MyField”;“myValue”);“”)
Subject: RE: @SetField in @If statements doesn’t work
That should no longer be necessary in ND6 (and tests okay for me without FIELD). There must be something else amiss with the formula.