Hi,
I try to use Calendar in a VP 7.3 project from Calendar sample.
What does this first column mean ? or is it a bug... how to solve it ?
-
- VIP Member
- Posts: 204
- Joined: 16 Oct 2001 23:01
Problem using Calendar
You do not have the required permissions to view the files attached to this post.
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
-
- VIP Member
- Posts: 204
- Joined: 16 Oct 2001 23:01
From this sample => http://www.visual-prolog.com/vip/exampl ... lendar.htm
If you add a note() in this following clause in DayCell.pro, you can see "@obj_proc(0041453C,00329F68)" :
If you add a note() in this following clause in DayCell.pro, you can see "@obj_proc(0041453C,00329F68)" :
Code: Select all
get_CellStr(1,0) =toString( xCALENDAR:get_weekNo1) :- vpiCommonDialogs::note(toString(xCALENDAR:get_weekNo1)), !.
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
Yes and that is the problem, you don't want to write the predicate, you want to write the result of calling the predicate. So you have to write get_weekNo1() instead of get_weekNo1:
Code: Select all
%-- Week Number Column
get_CellStr(1, 0) = toString(xCALENDAR:get_weekNo1()) :-
!.
get_CellStr(2, 0) = toString(xCALENDAR:get_weekNo2()) :-
!.
get_CellStr(3, 0) = toString(xCALENDAR:get_weekNo3()) :-
!.
get_CellStr(4, 0) = toString(xCALENDAR:get_weekNo4()) :-
!.
get_CellStr(5, 0) = toString(xCALENDAR:get_weekNo5()) :-
!.
get_CellStr(6, 0) = toString(xCALENDAR:get_weekNo6()) :-
!.
Regards Thomas Linder Puls
PDC
PDC
-
- VIP Member
- Posts: 204
- Joined: 16 Oct 2001 23:01