Hello All,
I use the debug function (alt d, w) in macro scheduler and this works fine for me.
In my macro I call a function, and I want also see the debug of this function in the window beside my macro.
How can I do that, is that possible ?
my script :
vbstart
function nummerwerkdagweek(datum)
nummer=datepart("w",datum)
nummerwerkdagweek=nummer
end function
vbend
getdate>datum
vbeval>nummerwerkdagweek(datum),bepaaleerstewerkdag
dayofweek>nummervandaagweek
if>nummervandaagweek=bepaaleerstewerkdag,verdermaand,endifmaand
label>verdermaand
messagemodal>hallo
Label>endifmaand
messagemodal>dit is het einde
Label>end
nummervandaagweek=3
bepaaleerstewerkdag=7 ,output what I see, but I expect also 3 <---
therefor I want to debug also the function nummerwerkdagweek(datum)
Thanks Duran
Debugging inside a function
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
One thing you could do in VBScript is to insert a bunch of MessageBox lines with a pause, playing back the variable values.
Or write the variables to a file and use Macro Scheduler to read the file for you.
When not needed, just turn the lines into remarks until you need to troubleshoot again.
Or write the variables to a file and use Macro Scheduler to read the file for you.
When not needed, just turn the lines into remarks until you need to troubleshoot again.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!