Sauter une ligne dans un prompt

Forum destiné aux questions sur le développement : Formules, LotusScript, Java ...

Sauter une ligne dans un prompt

Messagepar clementbp » 10 Mai 2011 à 16:03

Bonjour,

Je voudrais faire apparaître un message à l'écran pour dire différents éléments.
Le problème et que j'aimerais bien avoir des sauts de lignes entre les phrases du message.

Cela est il possible?

Mon code :

Code : Tout sélectionner
Dim workspace1 As New NotesUIWorkspace
     Dim BoiteDeMessage As Integer
    BoiteDeMessage = workspace1.Prompt(PROMPT_OK, "Problème d'enregistrement", "Dossier inexistant. Le fichier à été enregistré dans ....")   


Je voudrais aller à la ligne entre "inexistant." et "Le Fichier"

Merci de votre aide
clementbp
Posteur habitué
Posteur habitué
 
Message(s) : 236
Inscrit(e) le : 03 Fév 2010 à 16:42

Messagepar Bidouille » 10 Mai 2011 à 16:18

Salut,

AddNewLine


Inserts one or more new lines (carriage returns) in a rich text item.
Defined in
NotesRichTextItem
Syntax
Call notesRichTextItem.AddNewLine( n% [, forceParagraph ] )
Parameters
n%
Remarque In COM this parameter is optional and defaults to 1.
Integer. The number of new lines to append.
forceParagraph
Boolean. Optional. If True, forces the new line to be a paragraph separator. If False, the new line is added, but does not force a new paragragh. True by default.
Usage
By default the insertion occurs at the end of the item. You can change the insertion point with BeginInsert and EndInsert.
Bidouille

8) Le farniente est une merveilleuse occupation. Dommage qu'il faille y renoncer pendant les vacances, l'essentiel étant alors de faire quelque chose. 8)
Pierre Daninos
Avatar de l’utilisateur
Bidouille
Roi des posts
Roi des posts
 
Message(s) : 691
Inscrit(e) le : 10 Déc 2008 à 18:14
Localisation : Sud Ouest

Messagepar Michael DELIQUE » 10 Mai 2011 à 16:32

salut

bidouille je pense plus a chr(10) ou chr(13)
Cordialement

Michael (SMS-Phobique)
----------------------------
"La théorie, c'est quand on sait tout et que rien ne fonctionne. La pratique, c'est quand tout fonctionne et que personne ne sait pourquoi."
Albert EINSTEIN
Avatar de l’utilisateur
Michael DELIQUE
Administrateur
Administrateur
 
Message(s) : 12183
Inscrit(e) le : 16 Déc 2004 à 10:36
Localisation : Paris/Cergy

Messagepar Bidouille » 10 Mai 2011 à 16:44

salut Mchael,

pas faux .... comme d'hab .... ;-)


Returns the character represented by a value interpreted as a locale-sensitive character code.
Syntax
Chr[$] ( numExpr )
Elements
numExpr
A numeric expression of data type Long in the range 0-255. If LotusScript is running on a native ASCII platform, the value is interpreted as a character code in the platform-native character set. If LotusScript is running on an EBCDIC platform, the value is interpreted as the character code for the ASCII equivalent in the platform's current locale. In either case, only single-byte ASCII values are valid.
Return value
Chr returns the character corresponding to the value of numExpr.
Chr returns the ANSI platform-specific character corresponding to the value of numExpr.
Chr returns a Variant of DataType 8 (String). Chr$ returns a String.
Usage
If the value of numExpr contains a fraction, LotusScript rounds the value before using it.
The following table lists the ASCII characters. The head of each column is the value of the first character in the column in decimal.
Bidouille

8) Le farniente est une merveilleuse occupation. Dommage qu'il faille y renoncer pendant les vacances, l'essentiel étant alors de faire quelque chose. 8)
Pierre Daninos
Avatar de l’utilisateur
Bidouille
Roi des posts
Roi des posts
 
Message(s) : 691
Inscrit(e) le : 10 Déc 2008 à 18:14
Localisation : Sud Ouest

Messagepar clementbp » 10 Mai 2011 à 16:45

C'est parfait c'est bien chr(10)

Merci beaucoup
clementbp
Posteur habitué
Posteur habitué
 
Message(s) : 236
Inscrit(e) le : 03 Fév 2010 à 16:42


Retour vers Développement

cron