Simplicty and flexibility!


DataEase 8.5 - SetState(), SetStyle(), SetColor(), MoveObject() all now support wildcard (Ver. 8.5.0.2001)

Started by DataEase
You will need to Sign In to be able to comment on the Blog!

DataEase 8.5 - SetState(), SetStyle(), SetColor(), MoveObject() all now support wildcard (Ver. 8.5.0.2001)

New Features create New Demands....

SetState(), SetStyle(), SetColor() and MoveObject() are between the most popular and besides ExecDQLClass the most used new features in DataEase 8.

We very quickly realised that you needed to be able to set specific objects and clones in a form and introduced the # to set a numbered object.

The more advanced user might also have tried to do something like this:

SetState("Cust*","Hide") with disappointing results.

Despair no longer...

We have now full implemented Wildcard * in all these functions as well as in combination with ' 

So 

SetStyle("A*#10","BrightRed") will change the style on all Clone 10 of each object that start with A.

You must be sensible in your object naming to take full advantage, but this would maybe "show" you why there is a different object name option on fields.

If you use the prefix SB1 on all objects in Subform 1 you will be able to address all objects in that subform simply by using #1 for Row one and #10 for row 10.


Written by DataEase 01/12/15 at 15:06:26 Dataease [{8}]FIVE
DG3_BlogList