Hi forum,
I have about 40 decimal variables; I want to zero out all the variables if Sales Amount is zero.
Instead of assigning 0 to each individul variable (A:=0; B:=0, etc); I am asking if there is a command something like CLIPPER does: STORE 0 TO A,B,C,D,E,F, etc.
Thank you,
ZEN [:D]
MAK
June 4, 2007, 8:01pm
2
you can write something like this
a := b := c := d := …0;
probably u can put it in a function
Try array (say A) and use CLEAR(A). But I am not sure if your problem must use single variables.
Hi forum,
I have about 40 decimal variables; I want to zero out all the variables if Sales Amount is zero.
Instead of assigning 0 to each individul variable (A:=0; B:=0, etc); I am asking if there is a command something like CLIPPER does: STORE 0 TO A,B,C,D,E,F, etc.
Thank you,
ZEN [:D]
Just write
A := 0;
B := 0;
C := 0;
why make it more complex than it needs to be?
I’d put that in a little utility function and call that.
Mak,
This is new for me I never try this one. I’ll try it.
Thank you.
ZEN
David,
I try to shorten the coding.
ZEN
Never think about this one. This is great.
Thanks,
ZEN
I think more time is spent to read and comment on this issue than just to write the lines
A := 0;
B := 0;
…
[H] Have a nice day!