abracadabraPDF › Forums › PDF – Général › Décortiquer un champ texte. RÉSOLU › Répondre à : Décortiquer un champ texte. RÉSOLU
J’ai trouvé cette méthode, hier après-midi, ça a fait chboum dans ma tête :ampoule::
/* Extraction du GDH HotLine */
var H = this.getField(“GDH-HL”);
H.value = (this.getField(“30-Hotline”).value.substring(7,9) + (“/”) + this.getField(“30-Hotline”).value.substring(5,7) + (“/”) + this.getField(“30-Hotline”).value.substring(3,5) + (” “) + this.getField(“30-Hotline”).value.substring(9,11) + (“:”) + this.getField(“30-Hotline”).value.substring(11,13));
/* Extraction du GDH HotLine */
ça manque d’élégance, mais ça a le mérite de fonctionner.
Comme disait mon père cherche un peu par toi même avant de demander aux autres….
Post résolu, merci Merlin