WorkDayStartTime and Gupta 3.0 |
Post Reply |
Author | |
Rudiger
Newbie Joined: 05 October 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 05 October 2006 at 7:49am |
Hello,
using CalendarPro 10.3.1 in Gupta SQL Windows 3.0 it's not possible to get or set the CalendarControl.Options.WorkDayStartTime and WorkDayEndTime. When using Get it returns NULL and setting the two attributes e.g. to 1.1.0001 08:00 and 1.1.0001 17:00 has no effect to the calendar (no error, no visible effect). Does anybody know, how to set these options in Gupta? Thanks a lot! |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Does Gupta work fine with other Calendar's properties of Date type?
-- WBR, Serge |
|
g.achrainer
Newbie Joined: 06 June 2006 Location: Austria Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hi,
maybe I can help. I use the Xtreme CalendarPro Active-X with Gupta Teamdeveloper 3.1 here, and I'm very happy with it.
But there are some "hacks" you need to do in the Libraries that Gupta generates, one of them is yours:
instead of the original function, use
!!CB!! 279
Function: PropSetWorkDayStartTime2 Description: Returns Boolean: Parameters Number: WorkDayStartTime ! Static Variables Local variables Boolean: tmpret Actions Call __ObjectPushNumber(WorkDayStartTime, VT_DATE) Set tmpret = __ObjectInvoke("WorkDayStartTime", INVOKE_PUT) Call __ObjectFlushArgs() Return tmpret the value of "WorkDayStartTime" is in days, i.e. 0.25 for 06:00 am etc. You can use the same modification for the "PropGet..." function:
!!CB!! 279
Function: PropGetWorkDayStartTime2 Description: Returns Boolean: Parameters Receive Number: returnValue ! Static Variables Local variables Boolean: tmpret Actions Set tmpret = __ObjectInvoke("WorkDayStartTime", INVOKE_GET) Call __ObjectPopNumber(-1, returnValue) Call __ObjectFlushArgs() Return tmpret Regards,
Gerhard
|
|
Rudiger
Newbie Joined: 05 October 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Gupta works fine with all other Calendar properties of Date type as far as we have used them!
Besides the Calendar Control is a very, very good component. Compliment to all who developed this! |
|
Rudiger
Newbie Joined: 05 October 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Thanks for the workaround code and for the amazingly fast reply to g.achrainer! Now setting and getting WorkDayStartTime and WorkDayEndTime is possible and works fine.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |