Hello everyone, im new to fox pro and this is my first major project.
Here is my problem.
I have a pageframe with two pages the first one has projects and the second has tasks, tasks are linked to a project, now I have a ranking system for tasks that you can make them go up and down in rankings. The way the rank is generated is by this code.
SELECT "projectlisttasks"
CALCULATE MAX(rank) TO lnRank
lnRank=(VAL(lnRank)+1)
lnRank=ALLTRIM(STR(lnRank))
Now the problem im facing is with the tasks ranking, each projects has many tasks and I want each project to have its own ranking system all (all tasks are In the same table). I thought away to do this was to add a for in there.
SELECT "projectlisttasks"
CALCULATE MAX(rank) FOR projno = projectlisttasks.projno TO lnRank
lnRank=(VAL(lnRank)+1)
lnRank=ALLTRIM(STR(lnRank))
projno in projectlist table is linked to projectlisttasks table by the index projno+PADL(rank,4,"0")
But this does not work, if anyone could give me some insight in to this i would appreciate it, and if anymore information is needed please just ask.
Here is my problem.
I have a pageframe with two pages the first one has projects and the second has tasks, tasks are linked to a project, now I have a ranking system for tasks that you can make them go up and down in rankings. The way the rank is generated is by this code.
SELECT "projectlisttasks"
CALCULATE MAX(rank) TO lnRank
lnRank=(VAL(lnRank)+1)
lnRank=ALLTRIM(STR(lnRank))
Now the problem im facing is with the tasks ranking, each projects has many tasks and I want each project to have its own ranking system all (all tasks are In the same table). I thought away to do this was to add a for in there.
SELECT "projectlisttasks"
CALCULATE MAX(rank) FOR projno = projectlisttasks.projno TO lnRank
lnRank=(VAL(lnRank)+1)
lnRank=ALLTRIM(STR(lnRank))
projno in projectlist table is linked to projectlisttasks table by the index projno+PADL(rank,4,"0")
But this does not work, if anyone could give me some insight in to this i would appreciate it, and if anymore information is needed please just ask.