10 messages in org.openoffice.fr.progRe: [prog] J' array oublié quelque ch...
FromSent OnAttachments
Serge LE LOUARNEAug 25, 2004 12:22 pm 
Manens FlorentAug 25, 2004 1:39 pm 
Serge LE LOUARNEAug 25, 2004 3:17 pm 
Serge LE LOUARNEAug 25, 2004 3:56 pm 
Manens FlorentAug 26, 2004 2:16 am 
Serge LE LOUARNEAug 26, 2004 3:46 am 
Laurent GodardAug 26, 2004 4:08 am 
Serge LE LOUARNEAug 26, 2004 1:21 pm 
Laurent GodardAug 27, 2004 1:38 am 
Serge LE LOUARNEAug 27, 2004 3:51 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] J' array oublié quelque chose ?Actions...
From:Laurent Godard (list@wanadoo.fr)
Date:Aug 26, 2004 4:08:56 am
List:org.openoffice.fr.prog

Bonjour serge,

mot = "Bonjour !" lettre = "o" n = Instr(1, mot, lettre) while n <> 0 motChoisi(n) = lettre n = Instr(n+1, mot, lettre) wend msgbox join(motChoisi(), "-")

A l'essai, il cale : il refuse d'affecter le "o" à motChoisi(2). Je vais "bricoler" un truc en coupant mot à la position voulue pour essayer. Mais je suis surpris de ce comportement des tableaux :(

as tu dimensionne ton tableau auparavent ? dim motChoisi(1 to len(mot)) as string

Je pense qu'il s'agit d'un genre de pendu ... Que cherches tu à faire exactement ?

Laurent