abattoir
26th March 2014, 14:58
Hi,

I am trying to use quoted.string in baan4c4, but I can't have it to compile it. It is giving "unresolved function error" while compilation. so wondering if quoted.function is supported in baan4c4. I have to use Like for a (form) variable in a dynamic query. I have tried all the posts on this subject in baanboard, but nothing seems to work for me.

Thanks,
Abattoir

JaapJD
26th March 2014, 16:15
Probably not supported. But

quoted.string(form.field)

is equivalent to

"""" & form.field & """"

or

chr$(34) & form.field & chr$(34)

The only thing you need to take care of is the possibility of having double quotes in the form field.

mark_h
26th March 2014, 16:51
This just compiled for me:
cmd = "/bin/mailx -s " & quoted.string("Printed Purchase Order (Automated Email)") & " " & strip$(email.addr) & "</testmx"

I do not see where the code has any includes.

JaapJD
26th March 2014, 16:59
It depends on the porting set you are using for Baan4c4 and whether you updated the include6.1 folder.