Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. Option Explicit
  2. Private Sub CommandButton1_Click()
  3.  
  4. Dim objDocCompra As GcpBEDocumentoCompra
  5. Dim objLinhaCompra As GcpBELinhaDocumentoCompra
  6.  
  7. Dim objLinhasRast As GcpBELinhasRastreabilidade
  8. Dim objLinhaRast As GcpBELinhaRastreabilidade
  9.  
  10. Set objDocCompra = BSO.Comercial.Compras.Edita("000", "ECF", "2019", 7)
  11. For Each objLinhaCompra In objDocCompra.Linhas
  12. Set objLinhasRast = New GcpBELinhasRastreabilidade
  13. BSO.Comercial.Compras.ProcuraLinhasAnteriores objLinhaCompra.IDLinha, objLinhasRast
  14. If Not objLinhasRast Is Nothing Then
  15. For Each objLinhaRast In objLinhasRast
  16.  
  17. 'Fazer alguma coisa aqui
  18.  
  19. Next objLinhaRast
  20. End If
  21. Next objLinhaCompra
  22. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement