<?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=DettachMessage_%28TdbfMessageBox%29</id>
	<title>DettachMessage (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=DettachMessage_%28TdbfMessageBox%29"/>
	<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=DettachMessage_(TdbfMessageBox)&amp;action=history"/>
	<updated>2026-05-25T02:51:23Z</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=DettachMessage_(TdbfMessageBox)&amp;diff=5453&amp;oldid=prev</id>
		<title>Syfre : Page créée avec « &lt;source lang=&#039;delphi&#039;&gt;function DettachMessage(iMsg:TdbfMessage):Boolean;&lt;/source&gt;  Cette procédure détache un message à la boîte.  {|class=&quot;wikitable&quot; |- |Result |Retourn… »</title>
		<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=DettachMessage_(TdbfMessageBox)&amp;diff=5453&amp;oldid=prev"/>
		<updated>2011-07-12T11:33:55Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;function DettachMessage(iMsg:TdbfMessage):Boolean;&amp;lt;/source&amp;gt;  Cette procédure détache un message à la boîte.  {|class=&amp;quot;wikitable&amp;quot; |- |Result |Retourn… »&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 DettachMessage(iMsg:TdbfMessage):Boolean;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cette procédure détache 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;
|Retourne True si le message a été supprimé.&lt;br /&gt;
|-&lt;br /&gt;
|iMsg&lt;br /&gt;
|Un message à détacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{tip|Le message est supprimé si il n&amp;#039;est plus attaché à aucune boîte.}}&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 DeQueueMessage;&lt;br /&gt;
var msg:TdbfMessage; box:TdbfMessageBox;&lt;br /&gt;
begin&lt;br /&gt;
  box := TdbfMessageBox.FindBox(&amp;#039;box1&amp;#039;);&lt;br /&gt;
  if Assigned(box) then&lt;br /&gt;
   begin&lt;br /&gt;
     msg := box.DeQueueMessage(&amp;#039;topic1&amp;#039;);&lt;br /&gt;
     if Assigned(msg) then&lt;br /&gt;
        begin&lt;br /&gt;
          ShowMessage(&amp;#039;found one&amp;#039;);&lt;br /&gt;
          withP transaction do&lt;br /&gt;
           begin&lt;br /&gt;
             box.DettachMessage(msg);&lt;br /&gt;
           end;&lt;br /&gt;
        end&lt;br /&gt;
        else showMessage(&amp;#039;no message in queue&amp;#039;);&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;
* [[AttachMessage_(TdbfMessageBox)|Attacher 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>