Page 1 sur 1

Sauter une ligne dans un prompt

MessagePublié: 10 Mai 2011 à 16:03
par clementbp
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

MessagePublié: 10 Mai 2011 à 16:18
par Bidouille
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.

MessagePublié: 10 Mai 2011 à 16:32
par Michael DELIQUE
salut

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

MessagePublié: 10 Mai 2011 à 16:44
par Bidouille
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.

MessagePublié: 10 Mai 2011 à 16:45
par clementbp
C'est parfait c'est bien chr(10)

Merci beaucoup