FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
WB22 - Date Pictures
WB22 - Date Pictures
Débuté par André Labuschagné, 04 aoû. 2018 22:50 - 4 réponses
Connectez-vous…
André Labuschagné
#1
Posté le 04 août 2018 - 22:50
Hi All
Is there a function to change a month number to a month string equivalent such as month 8 must return Aug or August
Cheers
André
Signaler
0
0
GuenterP
#2
Posté le 05 août 2018 - 06:47
Hi, MonthNumberinAlpha(..) should do it. It returns the month name that you defined in the project description ... long time before fuctions like this were available, in the project code we prepared arrays with long and short day and month names in the language the application was made for. Lots of Wx-functions are there for convenience not out of necessity ...
Monat[1] = "Jänner"; Monat[2] = "Februar"; Monat[3] = "März"; Monat[4] = "April"; Monat[5] = "Mai"; Monat[6] = "Juni" Monat[7] = "Juli"; Monat[8] = "August"; Monat[9] = "September"; Monat[10] = "Oktober"; Monat[11] = "November"; Monat[12] = "Dezember" Monatkurz[1] = "JAN"; Monatkurz[2] = "FEB"; Monatkurz[3] = "MAR"; Monatkurz[4] = "APR"; Monatkurz[5] = "MAI"; Monatkurz[6] = "JUN" Monatkurz[7] = "JUL"; Monatkurz[8] = "AUG"; Monatkurz[9] = "SEP"; Monatkurz[10] = "OKT"; Monatkurz[11] = "NOV"; Monatkurz[12] = "DEZ" Wochentag[1] = "Montag"; Wochentag[2] = "Dienstag"; Wochentag[3] = "Mittwoch"; Wochentag[4] = "Donnerstag"; Wochentag[5] = "Freitag" Wochentag[6] = "Samstag"; Wochentag[7] = "Sonntag"; Wochentag[8] = "Reserve 1"; Wochentag[9] = "Reserve 2" Wochentagkurz[1] = "MO" Wochentagkurz[2] = "DI"; Wochentagkurz[3] = "MI"; Wochentagkurz[4] = "DO"; Wochentagkurz[5] = "FR" Wochentagkurz[6] = "SA"; Wochentagkurz[7] = "SO"; Wochentagkurz[8] = "R1"; Wochentagkurz[9] = "R2"
Signaler
0
0
André Labuschagné
#3
Posté le 05 août 2018 - 16:17
Thanks Guenter.
Signaler
0
0
Piet van Zanten
#4
Posté le 07 août 2018 - 20:54
Hi André,
Short for Guenters example:
ar_MyDays is array of string
ar_MyDays=["ma","di","wo"."etc"]
or
Constant
Days="ma,di,wo,do,vr.,za,zo"
END
myDay=extractstring(Days,",",3)
So many ways WX can get the job done :spos:
Kind regards,
Piet
Signaler
0
0
André Labuschagné
#5
Posté le 08 août 2018 - 02:28
Thanks Piet - I did it the long way round. Going to give it a shot. And yes - many ways with WX.
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte