cleyan
Posts: 136
|
| Posted: 10/13/2008, 2:45 PM |
|
Hi!
I'm using the calendar component and I want to add a new event, I follow the help but I receive a lot of errors
Any advice? I think the help is outdated and maybe is not the correct syntax for the current version
Thanks in advanced
Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net |
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 10/13/2008, 4:43 PM |
|
cleyan
What version of CodeChargeStudio are you using...and we need more information as to the errors that you are receiving. Can you give us some examples of the work/errors??
|
 |
 |
cleyan
Posts: 136
|
| Posted: 10/15/2008, 8:55 AM |
|
Hi mamboBROWN
I use the code in the help file
Quote :
$CustomEventDateStr = "20050101";
$CustomEventTime = CCParseDate("12:00", array("HH", ":", "nn"));
$CustomEvent = new clsEventNewCalendar1();
$CustomEvent->_Time = $CustomEventTime;
$CustomEvent->EventTime = $CustomEventTime;
$CustomEvent->EventDescription = "Some text";
$Calendar1->Events[$CustomEventDateStr][] = $CustomEvent;
But, I receive the errors:
Warning: Missing argument 1 for clscalendarclientes() in D:\servidor\www\cumplemail\calendario.php on line 64
Warning: Missing argument 2 for clscalendarclientes() in D:\servidor\www\cumplemail\calendario.php on line 64
Notice: Undefined offset: 2 in D:\servidor\www\cumplemail\Classes.php on line 2655
Notice: Undefined offset: 3 in D:\servidor\www\cumplemail\Classes.php on line 2655
Notice: Undefined offset: 0 in D:\servidor\www\cumplemail\Classes.php on line 2656
Notice: Undefined offset: 1 in D:\servidor\www\cumplemail\Classes.php on line 2657
These error repeat many times but the data is shown in the calendar as espected
the name of the calendar control is clientes, of couse I change the names to the correct one in my code.
I change the error reporting to: error_reporting(E_ERROR) to hide the error but I think somethong is wrong in the example code.
Thanks in advanced
Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net |
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 10/21/2008, 4:26 PM |
|
cleyan
Are these errors or warnings?? If they are warnings you might need to configure PHP.ini not to show notices/warnings.
|
 |
 |
cleyan
Posts: 136
|
| Posted: 10/22/2008, 6:46 AM |
|
thanks, I done that.
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net |
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 10/23/2008, 5:17 AM |
|
cleyan,
Soooooooooo......do you still need assistance or is this issue resolved?? Please let us know and if it is resolved please put [RESOLVED] in the header. Thanks.
|
 |
 |
cleyan
Posts: 136
|
| Posted: 10/23/2008, 10:05 AM |
|
thanks a lot, bye
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net |
 |
 |
|