Clarion ProCodeBlock Documentation

Related Code Template

Related Code Template

Previous topic Next topic  

Related Code Template

Previous topic Next topic  

To manually block an EIP (Edit in Place) action you need to add these lines of code in the Accepted event of the INSERT, CHANGE and DELETE buttons.

 

While you can use hand code to block the EIP action as shown here, there is also a #CODE template that you can use to make it easier.

 

Note: The #CODE template generates the exact same code as shown in the link above.

 

To use the #CODE template, select the EIP button where you want to add it

 

clip0029

 

then right-click and select the EMBEDS option:

 

clip0030

 

 

Highlight the Accepted embed and press or click INSERT

 

clip0031

 

 

Then type CODEBLOCK and select the PSCodeBlockEIPAction template.

 

clip0033

 

 

Then click the SELECT button to insert the #CODE template at that embed point.

 

clip0034

 

NOTE:  In Clarion 7 Build 5349 there were some instances in testing where inserting a #CODE template in this manner would cause C7 to stop responding and die.

 

This is NOT a ProCodeBlock problem!

 

Hopefully this bug will be fixed in the next release.

 

TIP: Our testing also revealed that if you select the procedure where the EIP is in the procedure tree, then click EMBEDS and go to the button embed that way (instead of from the Window Designer), that it always works without error.