Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Résolu] Extraire la date de ce string

Featured Replies

Posté(e)

"Paint1.job" (mspt.exe) 6/04/2006 11:13:00 ** ERROR **

Voilà, comment dois-je faire en VB.NET pour parvenir à extraire la date de cette ligne, sachant que le début comme la fin peut changer. Exemple:

"Paint1.job" (mspt.exe) 6/04/2006 11:13:00 ** ERROR **

"Task Scheduler Service" 8/03/2006 10:53:33 ** Error **

"New Task 2.job" (mspnt.exe) 27/03/2006 12:09:00 ** ERROR **

Etc

Merci

Modifié par NiTrOuS

Posté(e)

Tu lis a partir du premier chiffre après la guillement fermante ou la parenthèse fermante et juqu'au dernier chiffre avant le premier *

Edit : Raté ca fonctionne pas

Posté(e)
  • Auteur

C'est bon j'ai trouvé, merci quand même

Dim position As Integer = InStr(line, ")")
Dim date1 As Date = line.Substring(position)
Dim date2 As Date = Replace(date1, " ** Error **", "")

Je cherche la position de la parenthèse. Je supprime tout ce qui se trouve dans le string jusqu à cette position. Ensuite je retire le ** Error **

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.