Hello Ignacio Jose
Please explain if possible how to make further updates
to the TPlaning Control after first creation of dates notes.
I try the deleteItem Method but dosen't works. I want to
make a scheduler dased on this control. Any help would be apreciated.
TIA
Dionisis
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
TPlaning Control
- Dionisis Divaris
- Mensajes: 485
- Registrado: Jue Jul 12, 2007 8:48 pm
- Ubicación: Athens Greece
- ignacio
- Site Admin
- Mensajes: 9469
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
TPlaning Control
Dionisis,
You have the full source code and is all high level code. Indeed, this
control was made as a sample so any one could make its own controls.
The method deleteItem() receives a nItem value which is its ordinal position
on the array aItems. The methos seems to work right, but when you delete a
Item all the Items after that one will decrease its ordinal position by one.
The method DeleteItem() can be easely updated to also support a oItem
parameter.
[Not tested]
METHOD DeleteItem( Item ) CLASS XPlanning
LOCAL nItem
IF Valtype( Item ) == "O"
nItem := Ascan( ::FaItems, {|v| v == Item } )
ELSE
nItem := Item
ENDIF
IF nItem >= 1 .AND. nItem <= Len( ::FaItems )
ADel( ::FaItems, nItem )
ASize( ::FaItems, Len( ::FaItems ) - 1 )
::Refresh( .T. )
ENDIF
RETURN Nil
--
Ignacio Ortiz de Zúñiga
[Xailer support]
"Dionisis Divaris" <info@sgs-soft.gr> escribió en el mensaje
news:48b23c87$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hello Ignacio Jose
>
> Please explain if possible how to make further updates
> to the TPlaning Control after first creation of dates notes.
> I try the deleteItem Method but dosen't works. I want to
> make a scheduler dased on this control. Any help would be apreciated.
>
> TIA
> Dionisis
>
You have the full source code and is all high level code. Indeed, this
control was made as a sample so any one could make its own controls.
The method deleteItem() receives a nItem value which is its ordinal position
on the array aItems. The methos seems to work right, but when you delete a
Item all the Items after that one will decrease its ordinal position by one.
The method DeleteItem() can be easely updated to also support a oItem
parameter.
[Not tested]
METHOD DeleteItem( Item ) CLASS XPlanning
LOCAL nItem
IF Valtype( Item ) == "O"
nItem := Ascan( ::FaItems, {|v| v == Item } )
ELSE
nItem := Item
ENDIF
IF nItem >= 1 .AND. nItem <= Len( ::FaItems )
ADel( ::FaItems, nItem )
ASize( ::FaItems, Len( ::FaItems ) - 1 )
::Refresh( .T. )
ENDIF
RETURN Nil
--
Ignacio Ortiz de Zúñiga
[Xailer support]
"Dionisis Divaris" <info@sgs-soft.gr> escribió en el mensaje
news:48b23c87$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hello Ignacio Jose
>
> Please explain if possible how to make further updates
> to the TPlaning Control after first creation of dates notes.
> I try the deleteItem Method but dosen't works. I want to
> make a scheduler dased on this control. Any help would be apreciated.
>
> TIA
> Dionisis
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
- ignacio
- Site Admin
- Mensajes: 9469
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
TPlaning Control
Dionisis,
You have the full source code and is all high level code. Indeed, this
control was made as a sample so any one could make its own controls.
The method deleteItem() receives a nItem value which is its ordinal position
on the array aItems. The methos seems to work right, but when you delete a
Item all the Items after that one will decrease its ordinal position by one.
The method DeleteItem() can be easely updated to also support a oItem
parameter.
[Not tested]
METHOD DeleteItem( Item ) CLASS XPlanning
LOCAL nItem
IF Valtype( Item ) == "O"
nItem := Ascan( ::FaItems, {|v| v == Item } )
ELSE
nItem := Item
ENDIF
IF nItem >= 1 .AND. nItem <= Len( ::FaItems )
ADel( ::FaItems, nItem )
ASize( ::FaItems, Len( ::FaItems ) - 1 )
::Refresh( .T. )
ENDIF
RETURN Nil
--
Ignacio Ortiz de Zúñiga
[Xailer support]
"Dionisis Divaris" <info@sgs-soft.gr> escribió en el mensaje
news:48b23c87$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hello Ignacio Jose
>
> Please explain if possible how to make further updates
> to the TPlaning Control after first creation of dates notes.
> I try the deleteItem Method but dosen't works. I want to
> make a scheduler dased on this control. Any help would be apreciated.
>
> TIA
> Dionisis
>
You have the full source code and is all high level code. Indeed, this
control was made as a sample so any one could make its own controls.
The method deleteItem() receives a nItem value which is its ordinal position
on the array aItems. The methos seems to work right, but when you delete a
Item all the Items after that one will decrease its ordinal position by one.
The method DeleteItem() can be easely updated to also support a oItem
parameter.
[Not tested]
METHOD DeleteItem( Item ) CLASS XPlanning
LOCAL nItem
IF Valtype( Item ) == "O"
nItem := Ascan( ::FaItems, {|v| v == Item } )
ELSE
nItem := Item
ENDIF
IF nItem >= 1 .AND. nItem <= Len( ::FaItems )
ADel( ::FaItems, nItem )
ASize( ::FaItems, Len( ::FaItems ) - 1 )
::Refresh( .T. )
ENDIF
RETURN Nil
--
Ignacio Ortiz de Zúñiga
[Xailer support]
"Dionisis Divaris" <info@sgs-soft.gr> escribió en el mensaje
news:48b23c87$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hello Ignacio Jose
>
> Please explain if possible how to make further updates
> to the TPlaning Control after first creation of dates notes.
> I try the deleteItem Method but dosen't works. I want to
> make a scheduler dased on this control. Any help would be apreciated.
>
> TIA
> Dionisis
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com