Page 1 of 1 1
Topic Options
#10774 - 2001-07-23 08:33 PM @Macro langage
Anonymous
Unregistered


Hi guys,

i wish to know if there a way to got the macro result @day and @month in french.

i tough that was OS langage dependant but it's not the case.

all my server are english and User OS are in french.

thanks for your help!

Nyx

Top
#10775 - 2001-07-24 07:17 AM Re: @Macro langage
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Welcome to the board.

We have write some code, which will return two variables:
- $current_day
and
- $current_month
By replacing the macros call @day and @month you will
get the wanted result.
You only need to call the subroutines at the beginning of your script.

code:

GOSUB get_current_day
GOSUB get_current_month
? $current_day
? $current_month
RETURN
EXIT
:get_current_day
$number_of_days=7
DIM $days[$number_of_days+1]
$days[1]="dimanche"
$days[2]="lundi"
$days[3]="mardi"
$days[4]="mercredi"
$days[5]="jeudi"
$days[6]="vendredi"
$days[7]="samedi"
;
$current_day=$days[@wdayno]
RETURN

:get_current_month
$number_of_months=12
DIM $months[$number_of_months+1]
$months[ 1]="janvier"
$months[ 2]="février"
$months[ 3]="mars"
$months[ 4]="avril"
$months[ 5]="mai"
$months[ 6]="juin"
$months[ 7]="juillet"
$months[ 8]="août"
$months[ 9]="septembre"
$months[10]="octobre"
$months[11]="novembre"
$months[12]="décembre"
;
$current_month=$months[@monthno]
RETURN



Greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#10776 - 2001-07-24 03:28 PM Re: @Macro langage
Anonymous
Unregistered


Thanks a lot!! Nice code and it work like a charm!

Nyx

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 229 anonymous users online.
Newest Members
SHEBLU_HOSSAIN, JohnShearer, sam_white, Luuraap, mve666
17800 Registered Users

Generated in 0.025 seconds in which 0.011 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org