#39876 - 2003-05-03 08:18 AM
Re: ReadLine Function
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11629
Loc: CA
|
Hello Brian,
Here is an example of doing what you're looking to do. You need to supply the real path to the BIRTHDAYS.INI file and you need to fill it out to include ALL MONTHS and ALL DAYS as well as ALL USERS with their Birthday on that month and day.
It is possible to do this other ways, but this should suffice or at least give you a little more insight on how it can be done.
Hope this helps, if you have questions please don't hesitate to ask. The Piranha members around here will be happy to help.
DisplayBirthdays.kix
$Y = SUBSTR(@DATE, LEN(@DATE) - 9, 4) $M = SUBSTR(@DATE, LEN(@DATE) - 4, 2) $D = SUBSTR(@DATE, LEN(@DATE) - 1, 2) $MyFile=("C:\TEMP\birthdays.ini") $Birthdays=ReadProfileString ($MyFile, $M, $D) $AlertBD=MessageBox("Today is "+@DATE+@CRLF+"Happy Birthday to "+$Birthdays, "Happy Birthday", 64)
birthdays.ini
[01] 01=John Doe 02=Bill Smith 03=Brian Wilson 04=George Garthy 05=Jane Doe [02] 01=John Miller, Jack Black 02=Karen Gleason [03] 01=Wendy Feiten 02=Brad Jones [04] 01=Greg Engle 02=Tim Vinter 03=Beth Angel [05] 01=Carl Celt 02=Kevin Empire, Andy Burke 03=Helen Birch 04=Celine Welsh, Bart Sordel
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 483 anonymous users online.
|
|
|