<?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=AttachMessage_%28TdbfMessageBox%29</id>
	<title>AttachMessage (TdbfMessageBox) - 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=AttachMessage_%28TdbfMessageBox%29"/>
	<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=AttachMessage_(TdbfMessageBox)&amp;action=history"/>
	<updated>2026-05-25T04:40:57Z</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=AttachMessage_(TdbfMessageBox)&amp;diff=5448&amp;oldid=prev</id>
		<title>Syfre : Page créée avec « &lt;source lang=&#039;delphi&#039;&gt;function AttachMessage(iMsg:TdbfMessage):TdbfMessageBoxAssMessage;&lt;/source&gt;  Cette procédure attache un message à la boîte.  {|class=&quot;wikitable&quot; |- |… »</title>
		<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=AttachMessage_(TdbfMessageBox)&amp;diff=5448&amp;oldid=prev"/>
		<updated>2011-07-12T09:22:10Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;function AttachMessage(iMsg:TdbfMessage):TdbfMessageBoxAssMessage;&amp;lt;/source&amp;gt;  Cette procédure attache un message à la boîte.  {|class=&amp;quot;wikitable&amp;quot; |- |… »&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;function AttachMessage(iMsg:TdbfMessage):TdbfMessageBoxAssMessage;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cette procédure attache un message à la boîte.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Result&lt;br /&gt;
|Un objet TdbfMessageBoxAssMessage représentant l&amp;#039;association&lt;br /&gt;
|-&lt;br /&gt;
|iMsg&lt;br /&gt;
|Un message à attacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{tip|Le message est attaché comme un message reçu.}}&lt;br /&gt;
&lt;br /&gt;
Exemple :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;&lt;br /&gt;
//Procedure CreateMessage;&lt;br /&gt;
var msg:TdbfMessage; box1,box:TdbfMessageBox;&lt;br /&gt;
begin&lt;br /&gt;
  box := TdbfMessageBox.FindBox(&amp;#039;mybox&amp;#039;);&lt;br /&gt;
  if Assigned(box) then&lt;br /&gt;
   begin&lt;br /&gt;
     withP transaction do&lt;br /&gt;
      begin&lt;br /&gt;
        // From&lt;br /&gt;
        msg := box.CreateMessage(&amp;#039;Some subject in a queue&amp;#039;,&amp;#039;Some content&amp;#039;, nil);&lt;br /&gt;
        msg.queueTopic := &amp;#039;topic1&amp;#039;;&lt;br /&gt;
        // To&lt;br /&gt;
        box1 := TdbfMessageBox.FindBox(&amp;#039;box1&amp;#039;);&lt;br /&gt;
        if Assigned(box1) then box1.AttachMessage(msg);&lt;br /&gt;
      end;&lt;br /&gt;
   end;&lt;br /&gt;
end;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Voir aussi : &lt;br /&gt;
&lt;br /&gt;
* [[CreateMessage_(TdbfMessageBox)|Création d&amp;#039;un message]]&lt;br /&gt;
&lt;br /&gt;
{{Footer|TdbfMessageBox (class)}}&lt;br /&gt;
[[category:TdbfMessageBox]]&lt;/div&gt;</summary>
		<author><name>Syfre</name></author>
	</entry>
</feed>