91
General Mach Discussion / Re: Is this a valid line of VB script?
« on: December 19, 2009, 12:40:36 AM »
In VB "=" means this equals that
or
You would have to provide more of the code to figure out what is meant to happen.
Spindle ON LED (CW or CCW) = GetOemLED(11)
Are you checking to see if the spindle is on and how long to wait for?
Code: [Select]
wait = 4
msgbox wait 'returns 4
or
Code: [Select]
this = true
that = true
if this = that then
msgbox "they are the same"
End If
You would have to provide more of the code to figure out what is meant to happen.
Spindle ON LED (CW or CCW) = GetOemLED(11)
Are you checking to see if the spindle is on and how long to wait for?
Code: [Select]
Wait = 1000
If GetOEMLED(11) = True Then
Sleep(wait)
End IF