Use SetProperty instead of Set Attributes Statement on CSPRO 7

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Boni
Posts: 75
Joined: February 25th, 2020, 5:53 am

Use SetProperty instead of Set Attributes Statement on CSPRO 7

Post by Boni »

Hello everyone!
I read this on the help of CSPro : Starting with CSPro 7.1, you should no longer use these functions as they may soon be removed from CSPro. To replicate the behavior of the functions, you can use the setproperty function with one of the following arguments: "CaptureType", "Protected", or "UseEnterKey".

So I wanted to replace my Set atributes Statement used to change the values of various field properties by setProperty, but it does not work. How can I use SetProperty to allow the modification of a protected field for example, please?
Attachments
Capture.PNG
Capture.PNG (3.17 KiB) Viewed 3102 times
Sincerely yours !
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Use SetProperty instead of Set Attributes Statement on CSPRO 7

Post by josh »

To make a field protected use:

Code: Select all

setproperty(FIELDNAME, "Protected","Yes");
To make it NOT protected use:

Code: Select all

setpropertyFIELDNAME, ("Protected","No") 
Full list of options is in the help for SetProperty https://www.csprousers.org/help/CSPro/s ... ction.html
Post Reply