Is it an error message, or an unexpected result? If it is an error message, what is the message, and on which line does it appear?
>Hello, i'm having an error, so i'd like to know what's wrong?
>Thanks for the help.
>
>
> trecib=(val(sys(11,tablest.freciborep))-val(sys(11,tablest.fech_fin)))
> XLSheet.Cells(i+1,13).value = TRECIB
> fec1=val(sys(11,tablest.fech_fin))
> fec2=val(sys(11,tablest.freciborep))
> contador=0
> do while fec1<>fec2
> if dow(sys(10,(fec1))=1 or dow(sys(10,fec1))=7
> contador=contador+1
> endif
> fec1=fec1+1
> enddo
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)