问题描述
PrivateSubBeltreturnOrg_DoWork(ByValsenderAsSystem.Object,ByValeAsSystem.ComponentModel.DoWorkEventArgs)HandlesBeltreturnOrg.DoWorke.Result=BeltAxisOrg()EndSubdowork是什么意思,什么情况下用他
解决方案
解决方案二:
dowork是一个事件。
解决方案三:
'搬送伺服回零线程PrivateSubConveyreturnOrg_DoWork(ByValsenderAsSystem.Object,ByValeAsSystem.ComponentModel.DoWorkEventArgs)HandlesConveyreturnOrg.DoWorke.Result=ConveyAxisOrg()EndSub'搬送伺服回零线程完成PrivateSubConveyreturnOrg_RunWorkerCompleted(ByValsenderAsObject,ByValeAsSystem.ComponentModel.RunWorkerCompletedEventArgs)HandlesConveyreturnOrg.RunWorkerCompletedconveyorg=e.ResultIfconveyorg=TrueThenConveyStatus=0ElseConveyStatus=2这两条语句回原点,为什么要两条了,哪位高手帮我分析下EndIfEndSub
解决方案四:
'搬送伺服回零线程PrivateSubConveyreturnOrg_DoWork(ByValsenderAsSystem.Object,ByValeAsSystem.ComponentModel.DoWorkEventArgs)HandlesConveyreturnOrg.DoWorke.Result=ConveyAxisOrg()EndSub'搬送伺服回零线程完成PrivateSubConveyreturnOrg_RunWorkerCompleted(ByValsenderAsObject,ByValeAsSystem.ComponentModel.RunWorkerCompletedEventArgs)HandlesConveyreturnOrg.RunWorkerCompletedconveyorg=e.ResultIfconveyorg=TrueThenConveyStatus=0ElseConveyStatus=2EndIfEndSub为什么要两条语句回原点,
解决方案五:
典型的异步编程模型。请求-完成回发。
解决方案六:
是否是通过e.Result作为中间变量把ConveyAxisOrg()传递给conveyorg如果是,那e.Result作为全局变量拉还是?