Okay this has been a frustrating issue I have run into of late:
modSysFunc.mthCalcTime, line 25
There is more than one method with this name but this does not match any of the available signatures.
shiftStart.Second = Right( strStart.ToInteger, 2 )
[code]shiftStart.Hour = Left( strStart.ToInteger, 2 )
shiftStart.Minute = Mid( strStart.ToInteger, 4, 2 )
shiftStart.Second = Right( strStart.ToInteger, 2 )
shiftEnd.Hour = Left( strEnd.ToInteger, 2 )
shiftEnd.Minute = Mid( strEnd.ToInteger, 4, 2 )
shiftEnd.Second = Right( strEnd.ToInteger, 2 )
lunchStart.Hour = Left( strLncStrt.ToInteger, 2 )
lunchStart.Minute = Mid( strLncStrt.ToInteger, 4, 2 )
lunchStart.Second = Right( strLncStrt.ToInteger, 2 )
lunchEnd.Hour = Left( strLncEnd.ToInteger, 2 )
lunchEnd.Minute = Mid( strLncEnd.ToInteger, 4, 2 )
lunchEnd.Second = Right( strLncEnd.ToInteger, 2 )
[/code]
Why is this error happening? I am using the code with my changes, provided by Hector. So this is a Module.Method I am writing to calculate hours for shift and lunch, and it’s set up to return a String and takes 5 parameters.
- Start Time :: strStart // Start of Shift
- End Time :: strEnd // End of Shift
- Lunch Start :: strLncStrt // Start Lunch
- Lunch End :: strLncEnd // End Lunch
- Which to Calculate
But this error:
modSysFunc.mthCalcTime, line 25
There is more than one method with this name but this does not match any of the available signatures.
shiftStart.Second = Right( strStart.ToInteger, 2 )
modSysFunc.mthCalcTime, line 26
There is more than one method with this name but this does not match any of the available signatures.
modSysFunc.mthCalcTime, line 27
There is more than one method with this name but this does not match any of the available signatures.
shiftEnd.Hour = Left( strEnd.ToInteger, 2 )
modSysFunc.mthCalcTime, line 29
There is more than one method with this name but this does not match any of the available signatures.
shiftEnd.Second = Right( strEnd.ToInteger, 2 )
modSysFunc.mthCalcTime, line 30
There is more than one method with this name but this does not match any of the available signatures.
modSysFunc.mthCalcTime, line 31
There is more than one method with this name but this does not match any of the available signatures.
lunchStart.Hour = Left( strLncStrt.ToInteger, 2 )
modSysFunc.mthCalcTime, line 33
There is more than one method with this name but this does not match any of the available signatures.
lunchStart.Second = Right( strLncStrt.ToInteger, 2 )
modSysFunc.mthCalcTime, line 34
There is more than one method with this name but this does not match any of the available signatures.
modSysFunc.mthCalcTime, line 35
There is more than one method with this name but this does not match any of the available signatures.
lunchEnd.Hour = Left( strLncEnd.ToInteger, 2 )
you get the point… why am I getting this error?