Find the setproperty value

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
artemisclark
Posts: 1
Joined: October 13th, 2022, 12:00 am

Find the setproperty value

Post 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!
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Find the setproperty value

Post 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
Post Reply