<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://frp.sage.fr/wiki1000/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>https://frp.sage.fr/wiki1000/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="https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=DettachMessage_%28TdbfMessageBox%29"/>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=DettachMessage_(TdbfMessageBox)&amp;action=history"/>
		<updated>2026-05-16T08:59:54Z</updated>
		<subtitle>Historique pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.18.6</generator>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=DettachMessage_(TdbfMessageBox)&amp;diff=5453&amp;oldid=prev</id>
		<title>Syfre : Page créée avec « &lt;source lang='delphi'&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="https://frp.sage.fr/wiki1000/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='delphi'&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'est plus attaché à aucune boîte.}}&lt;br /&gt;
&lt;br /&gt;
Exemple :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang='delphi'&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('box1');&lt;br /&gt;
  if Assigned(box) then&lt;br /&gt;
   begin&lt;br /&gt;
     msg := box.DeQueueMessage('topic1');&lt;br /&gt;
     if Assigned(msg) then&lt;br /&gt;
        begin&lt;br /&gt;
          ShowMessage('found one');&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('no message in queue');&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>