Advertisement
dandepp

Untitled

Mar 23rd, 2023
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. FOR i = 1 _TO_ MySelf..Occurrence
  2.  
  3. sDocumentName is string = UploadFileName(MySelf, False, i)
  4. sTemporalDocumentPath is string
  5.  
  6. //DocumentsService is ServiceTaulellAnuncisDocuments
  7. cDocument is MTaulellAnuncisDocuments
  8.  
  9. //Upload selected document and copy it at TemporalFiles folder
  10. InitRandom()
  11. sTemporalDocumentPath = PROJECTE_PathTemporal + "\" + UploadCopyFile(MySelf, PROJECTE_PathTemporal, Random(1000000) + Lower(fExtractPath(sDocumentName, fExtension)), i)
  12.  
  13. //New document
  14. cDocument.Document = fLoadBuffer(sTemporalDocumentPath)
  15. //cDocument.Anuncis_ID = -1
  16. cDocument.NomDocument = sDocumentName
  17.  
  18. currentAnunci.arrayDocumentacio.Add(cDocument)
  19. AfegirDocumentAlLooper(cDocument)
  20. //DocumentsService.Create(cDocument)
  21. //RefrescarDocuments()
  22. END
  23.  
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement