Advertisement
jfabaf

fieldnum - bien

Sep 26th, 2011
1,602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. DocuField           docuField;
  2. int                 i;
  3. str                 nombreCampo;
  4. ;
  5.  
  6. ttsbegin;
  7. for (i = 1 ; i >= 20 ; i++)
  8. {
  9.     nombreCampo = strfmt("Campo%1",i);
  10.     docufield.clear();
  11.     docuField.initValue();
  12.     docuField.TypeId = "Documento";
  13.     docuField.DocuTableId = tablenum(TablaDocumento);
  14.     docuField.DataTableId = tablenum(TablaDatosDocumento);
  15.     docuField.DataFieldId = fieldName2Id(tableNum(TablaDatosDocumento),nombreCampo);
  16.     docuField.Bookmark = nombreCampo;
  17.     docuField.insert();
  18. }
  19. ttscommit;
  20.  
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement