<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>http://wiki.sage.fr/index.php?action=history&amp;feed=atom&amp;title=CreateDocumentEx_%28TdbfDocument%29</id>
	<title>CreateDocumentEx (TdbfDocument) - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.sage.fr/index.php?action=history&amp;feed=atom&amp;title=CreateDocumentEx_%28TdbfDocument%29"/>
	<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=CreateDocumentEx_(TdbfDocument)&amp;action=history"/>
	<updated>2026-05-25T04:46:21Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>http://wiki.sage.fr/index.php?title=CreateDocumentEx_(TdbfDocument)&amp;diff=11491&amp;oldid=prev</id>
		<title>Flfay : Page créée avec « &lt;source lang=&#039;delphi&#039;&gt;class function CreateDocumentEx(function CreateDocumentEx(const iName,iOidObject:string; iDocumentNature : integer; iCreationDateTimeStart : TDateTim... »</title>
		<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=CreateDocumentEx_(TdbfDocument)&amp;diff=11491&amp;oldid=prev"/>
		<updated>2017-04-18T13:23:50Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;class function CreateDocumentEx(function CreateDocumentEx(const iName,iOidObject:string; iDocumentNature : integer; iCreationDateTimeStart : TDateTim... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;class function CreateDocumentEx(function CreateDocumentEx(const iName,iOidObject:string; iDocumentNature : integer; iCreationDateTimeStart : TDateTime):TabsCustomDocument;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cette fonction crée un document et le rattache à un objet.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|iName&lt;br /&gt;
|Nom du document créé (avec l&amp;#039;extension)&lt;br /&gt;
|-&lt;br /&gt;
|iOidObject&lt;br /&gt;
|Identifiant de l&amp;#039;objet auquel rattaché le document&lt;br /&gt;
|-&lt;br /&gt;
|iDocumentNature&lt;br /&gt;
|Nature du document&lt;br /&gt;
|-&lt;br /&gt;
|iCreationDateTimeStart &lt;br /&gt;
|Date de création&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Exemple :&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
 doc : TdbfDocument;&lt;br /&gt;
 b : TBanque;&lt;br /&gt;
begin&lt;br /&gt;
 b := TBanque.Find(&amp;#039;code=%1&amp;#039;,&amp;#039;&amp;#039;,true,[&amp;#039;13807FR&amp;#039;]);&lt;br /&gt;
 Classmanager.Begintran;&lt;br /&gt;
 try&lt;br /&gt;
  doc := TdbfDocument.CreateDocumentEx(&amp;#039;doc1.txt&amp;#039;,b.instanceoid,DOCUMENTNATURE_ARCHIVE_ITEM,now);&lt;br /&gt;
  doc.LoadFromFile(s);&lt;br /&gt;
 except&lt;br /&gt;
  classmanager.RollBack;&lt;br /&gt;
  raise;&lt;br /&gt;
 end;&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Voir aussi:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Footer|TdbfDocument}}&lt;br /&gt;
[[category:TdbfDocument]]&lt;br /&gt;
[[Category:Version800]]&lt;/div&gt;</summary>
		<author><name>Flfay</name></author>
	</entry>
</feed>