Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12923
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: cccalendar |
| Date | 2020-03-11 22:28 +0100 |
| Message-ID | <hct3gqFsu0oU1@mid.individual.net> (permalink) |
| References | <60fa3510-d017-4200-8059-cf690e3ee833@googlegroups.com> <08d589a5-297a-4b84-b212-454646894b16@googlegroups.com> |
Hi Aurora,
I think you have painted the dialog with the painter and the
CLASS CalendarioNuovo_Maschera INHERIT DATADIALOG
contains the CustomControl. If that is so, the two lines after the line
//{{%UC%}} USER CODE STARTS HERE (do NOT remove this line)
do not make sense.
In the PostInit you must call the oDCCustomControl1 and not oDCcusCalendar
That is not initialized as far as I can see.
Probably you need to insert here self:oDCCustomControl1:Actualize(ToDay)
Regards
Urs
"aurora baccio" <aurorabaccio@gmail.com> schrieb im Newsbeitrag
news:08d589a5-297a-4b84-b212-454646894b16@googlegroups.com...
Il giorno lunedì 9 marzo 2020 18:02:34 UTC+1, aurora baccio ha scritto:
> Good evening,
> I have turned cccalendar into a bookshop and am looking for an agenda.
> I can't get the Easter calculation to work. It gives me the year 2000.
> in the CalendarNuovo_Maschera class I inserted export odccusCalendar and
> in initi of the same class I launched the Feiertage () method.
> What is missing ?
> Thank you
> auraro baccio
I hope to be clearer:
I created a datadialog and created the calendar mask.
No problem.
I must indicate the Easter date. In the postinit method of the datadialog I
write:
oSysMenu := self:EnableSystemMenu(true)
EnableMenuItem(oSysMenu:Handle(),1,_or(_or(MF_DISABLED,MF_GRAYED),MF_BYPOSITION))
*self:Origin := CenterDataWindow(self,self:owner)
self:Caption :="Agenda appuntamenti"
IF AScan(aChildWindows,self:Caption) != 0 // se esiste già
*WarningBox{self,self:Caption,"ATTENZIONE !! Maschera già attivata "}:Show()
FabMessageInfo("Maschera già attivata","Agenda appuntamenti")
self:ENDWindow()
RETURN nil
ELSE
AddChildWindow(self:Caption) // altrimenti l'aggiunge all'array di
controllo
ENDIF
self:oDCPasqua:Value := self:oDCcusCalendar:dOstern
the following error is created
Visual Objects (Version 2.8. Build 3.2838), Version 2.8 SP4b
11-03-2020 14:27:51
Application: C:\Prg28CavSS\CavalieriSS.DBG
Error message:
--------------
Error Code: 19 [ VARIABLE NOT INITIALIZED ]
Subsystem: BASE
Function: IVARGET
Argument: {(0x0000)0x00000000} CLASS
CallStack:
CALENDARIONUOVO_MASCHERA:POSTINIT (Line:20)
CALENDARIONUOVO_MASCHERA:INIT (Line:83)
MAINWINDOW:GESTIONECALENDARIO (Line:5)
APP:START (Line:100)
START (Line:6)
in the classroom
CLASS CalendarioNuovo_Maschera INHERIT DATADIALOG
PROTECT oDCCustomControl1 AS CCCALENDAR
PROTECT oCCPushButton1 AS PUSHBUTTON
PROTECT oCCPushButton2 AS PUSHBUTTON
PROTECT oCCPushButton3 AS PUSHBUTTON
PROTECT oCCPushButton4 AS PUSHBUTTON
PROTECT oCCPushButton5 AS PUSHBUTTON
PROTECT oCCPushButton6 AS PUSHBUTTON
PROTECT oCCPushButton7 AS PUSHBUTTON
PROTECT oCCPushButton8 AS PUSHBUTTON
PROTECT oCCPushButton9 AS PUSHBUTTON
PROTECT oCCPushButton10 AS PUSHBUTTON
PROTECT oCCPushButton11 AS PUSHBUTTON
PROTECT oCCPushButton12 AS PUSHBUTTON
PROTECT oCCEsci AS PUSHBUTTON
PROTECT oDCPasqua AS SINGLELINEEDIT
//{{%UC%}} USER CODE STARTS HERE (do NOT remove this line)
*EXPORT oDCcusCalendar as CCCALENDAR
hidden oDCcusCalendar as CCCALENDAR
what's the mistake?
thank you
aurora baccio
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
cccalendar aurora baccio <aurorabaccio@gmail.com> - 2020-03-09 10:02 -0700
Re: cccalendar "Glen Townsley" <coogee.2015@gmail.com> - 2020-03-10 04:03 +1000
Re: cccalendar "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-09 21:51 +0100
Re: cccalendar aurora baccio <aurorabaccio@gmail.com> - 2020-03-11 06:40 -0700
Re: cccalendar "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-11 22:28 +0100
Re: cccalendar aurora baccio <aurorabaccio@gmail.com> - 2020-03-12 00:15 -0700
Re: cccalendar aurora baccio <aurorabaccio@gmail.com> - 2020-03-12 07:10 -0700
Re: cccalendar "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-12 20:20 +0100
Re: cccalendar Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2020-03-12 23:05 +0100
Re: cccalendar "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-13 20:59 +0100
Re: cccalendar aurora baccio <aurorabaccio@gmail.com> - 2020-03-14 01:12 -0700
Re: cccalendar "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-14 22:21 +0100
Re: cccalendar aurora baccio <aurorabaccio@gmail.com> - 2020-03-15 01:38 -0700
Re: cccalendar aurora baccio <aurorabaccio@gmail.com> - 2020-03-22 02:15 -0700
Re: cccalendar "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-22 16:12 +0100
csiph-web