Hello there, thanks to take the time to read my problem...
Here it is...lets say i have few tables, and in each table i got a numeric feild, but they don't have the same name (like a PK in Oracle).
I.E : 1 table for my friends and 1 table for my family members. Each friend and member have a number to identify them. In my friends table, that feild is called NU and in my family members table, that field is called NA.
I made a program to reset the NU field automaticly, so if i loose a friend, the numbers still follow from 1 to x (x=end).
But i do not want to make few times the same program(if i had 30 tables) and just change the NU, by NA, or anything else...So i though i could pass an integer to my program, do the incrementation with that integer, and then return it to the right table in the right field. I know this is possible in C, but i do not know how to do it in FoxPro 2.0.
Is there anyone that can give my help?
I would really appreciate it.
Thanks.
Here it is...lets say i have few tables, and in each table i got a numeric feild, but they don't have the same name (like a PK in Oracle).
I.E : 1 table for my friends and 1 table for my family members. Each friend and member have a number to identify them. In my friends table, that feild is called NU and in my family members table, that field is called NA.
I made a program to reset the NU field automaticly, so if i loose a friend, the numbers still follow from 1 to x (x=end).
But i do not want to make few times the same program(if i had 30 tables) and just change the NU, by NA, or anything else...So i though i could pass an integer to my program, do the incrementation with that integer, and then return it to the right table in the right field. I know this is possible in C, but i do not know how to do it in FoxPro 2.0.
Is there anyone that can give my help?
I would really appreciate it.
Thanks.