I am very new to MediaPlay, having been with MS Access for quite awhile and been very disappointed with my attempts to distribute Access databases. Anyway, I am trying to convert a project I had in Access to MediaPlay. But I am having what seems to me a ridiculous problem:
nWeekday = System.GetDate(DATE_FMT_DAYOFWEEK);
nMonth = System.GetDate(4);
If (nMonth == 1) Then (strMonth = "January") AND (Label.SetText("Label1", strMonth)) End;
If (System.GetTime(1)>.5) Then Label.SetVisible (lblGoodMorning, false) End
I keep getting an error when compiling, telling me to put '=' near different places, and after I do, what I want to happen does not happen.
What I am trying to do with the two If statements is this:
(1) create nested If statements in order to put as text in a label the current month and day of the week (as part of the entire current date on the user's computer: day of week, name of Month, day, year[4 digits]); and,
(2) to allow only one of three labels to be visible depending on the time of day. That is, if it is before noon and after midnight, then display the label which says: "Good morning," if after noon but before 5 PM, allow the label which states: "Good afternoon," to be visible, and then after 5 PM and before midnight, to have "Good Evening," appear.
I do have a working clock on my opening page already.
Any suggestions would be greatly appreciated.