DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying the time of a minimum in a text report field

Solved!
Go to solution

Hi,

 

in Diadem 2020 this does not work anymore:

@str(cmin('sledX60'),'dd.d')@ g @str(char(64))@ @str(chd(pno(('sledX60'),cmin('sledX60')),1)*1000,'dd')@ ms

 

This should display xx g @ yy ms

But since the chd function does not work anymore (obsolete), what shall I use instead?

 

Cheers

Message 1 of 3
(1,174 Views)
Solution
Accepted by topic author Sebastian-D

Hi Sebastian-D,

 

It is not the CHD command which doesn't work. CHD works fine, even if this command is declared as obsolete.

It is the old - very old - syntax you are using.

 

a) Strings are defined with >"< like "my text" and not with >'<. This is because of VBS syntax. VBS is used in DIAdem since 2001.

b) A text which should be interpreted must be declared with @@

 

The correct syntax is: @@str(cmin("sledX60"),"dd.d")@@ g @@str(char(64))@@ @@str(chd(pno(("sledX60"),cmin("sledX60")),1)*1000,"dd")@@ ms

 

Greetings

Walter

Message 2 of 3
(1,110 Views)

Hi Walter,

 

thanks for that. It works as it should now.

 

Sebastian

0 Kudos
Message 3 of 3
(1,096 Views)