~ubuntu-branches/debian/sid/dmaths/sid

« back to all changes in this revision

Viewing changes to DmathsAddon/OOoGdmath/ChaineCode.xba

  • Committer: Package Import Robot
  • Author(s): Innocent De Marchi
  • Date: 2015-05-05 17:47:12 UTC
  • mfrom: (7.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20150505174712-3anxche6hz9pz5lg
Tags: 3.5.2.5+dfsg1-2
 * Upload to unstable.
 * Closes the openoffice.org-dmaths bug: don't exist this
   package now (LP: #473422).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
 
3
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ChaineCode" script:language="StarBasic">&apos;OOoGdmath
 
4
&apos;Copyright (C) 2005-2009  Gilles Daurat
 
5
 
 
6
&apos;This program is free software; you can redistribute it and/or
 
7
&apos;modify it under the terms of the GNU General Public License
 
8
&apos;as published by the Free Software Foundation; either version 2
 
9
&apos;of the License, or (at your option) any later version.
 
10
 
 
11
&apos;This program is distributed in the hope that it will be useful,
 
12
&apos;but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
&apos;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
&apos;GNU General Public License for more details.
 
15
 
 
16
&apos;You should have received a copy of the GNU General Public License
 
17
&apos;along with this program; if not, write to the Free Software
 
18
&apos;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
19
 
 
20
Sub MsgBoxP(unMessage as String)
 
21
Dim unTexte as String
 
22
Dim uneChaine as String
 
23
Dim a
 
24
 
 
25
        uneChaine = Chaine(unMessage)
 
26
        a = 1
 
27
        While((len(uneChaine) &gt; 40) and (a&lt;&gt;0))
 
28
                a = instr(40, uneChaine, &quot; &quot;)
 
29
                if a&lt;&gt;0 Then
 
30
                        unTexte = unTexte &amp; left(uneChaine, a - 1) &amp; chr(13)
 
31
                        uneChaine = mid(uneChaine, a+1)
 
32
                End if
 
33
        Wend
 
34
        unTexte = unTexte &amp; uneChaine
 
35
        MsgBox unTexte, 0, Chaine(&quot;erreur&quot;) &amp; &quot; - &quot; &amp; VERSION_GDMATH
 
36
End Sub
 
37
</script:module>
 
 
b'\\ No newline at end of file'