I have the following attached to a button...code seems like it should work, i created two dros, OEM1300 and OEM1302, get a data type mismatch. When I step thru with the debugger, I am getting the correct values into XPos and YPos...can't figure what I am doing wrong..
Sub Main
XPos=GetOEMDRO(1300)
YPos=GetOEMDRO(1302)
Code "G0 X" + XPos + "Y" + YPos
End Sub