Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexing
Message
From
18/07/2000 10:40:11
Liam O'Hagan
O'Hagan Programming Ltd
Ireland
 
 
To
18/07/2000 10:16:49
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00393783
Message ID:
00393806
Views:
16
Hi Steven,

>The next challange is making ecah group of tasks in the departments list a >certain way. I think that it will require another field in the table where >each department group is numbered sequencually.

You're a little vague on what exactly you're trying to do. If you want to order the tasks within the department then that is possible with the table you have. (Unless you want to order them on some value other than TASK)


>But how do I index first on the department no then task no.

INDEX on DeptNo + TaskNo Tag TaskWithinDept

If DeptNo or TaskNo are numeric fields, make sure to convert them in the index expression.

INDEX on ;
Padl(Alltrim(Str(DeptNo)), 5, "0") + ;
Padl(Alltrim(Str(TaskNo)), 5, "0") ;
Tag TaskWithinDept


>Then there is the possibiliy that another task will be inserted.

The index will be updated automatically as each record is inserted.


> Then the tasks for each department group will have to automatically number.

That, I'm afraid, will have to be done programmatically. There are a number of ways to do this. You should be able to find a number of threads on this subject in a search.

HTH

Liam
Liam O'Hagan
MCP VFP Desktop Apps
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform