Page 1 of 1

Find the setproperty value

Posted: October 13th, 2022, 12:03 am
by artemisclark
Dear Team;

There is a way on preproc i can find out the setproperty value.

Example;

Code: Select all

if setproperty($, "Protected", "Yes")  then
        errmsg ("Field is protected");
    elseif setproperty($, "Protected", "No")  then
        errmsg ("Field is not protected");
    else
    endif;
or
    numeric abc = setproperty ($, "Protected", "Yes");
    
Thanks!

Re: Find the setproperty value

Posted: October 13th, 2022, 11:41 am
by sherrell
Yes, just use the GetProperty function.

https://www.csprousers.org/help/CSPro/g ... ction.html

You would just ask,

Code: Select all

if getproperty($, "Protected") = "Yes"  then
   errmsg ("Field is protected");
   // etc
endif;   
Sherrell