New newbe Age function
Ok, I know you all will be gawfawed at my ignorance I have very little experience working with computer languages such as basic. I have been digging through all of the examples and tutorials but evidently what I am accustomed to in Lotus Approach is different here or I have missed something.
Fighting the Learning Curve.
I want to use data input into fields by the user to be processed and show up to be stored in another field using a function. (This is the fundamental aspect of programming data bases.)
Approach will let you reference the field inside the function and the field you want the data
to show up in. I don't see how to do that here. It looks like I have to make variables to get the info into the expressions or functions. I don't know.
So I have Three fields and they are type-in-fields on the form they reflect the respective fields in the table. I have a Form_date field (Date) and a Birth_date field (Date) I made these two fields smart calendar fields. I also have the Age_as_of_form_date field (Numeric) or should this be a text or a date field?
The user has to supply the form date and the birth date. Now I want the age of the person to show up in the Age_as_of_form_date field. Seems simple enough and Alpha's help files give examples of this kind of thing using dates over and over but basically they show the info already written into the function. I am interested in making it dynamic. I don't see how to get the info from one field to another. I found the Age Function.
(I don't know of any programming language that has an age function.) So great! The syntax I see in the code editor on the actions script is age(d dob [,d asofdate ]). Age() is supposed to return a numeric value but the input I have is date value. So do I have to change the date value to numeric to use the function? How do I do this? I have tried to make variables but I get either invalid or incomplete expression errors or that it doesn't evaluate to numeric.
A bit lost.
Any insight will be truly appreciated
Thank you George R. Kenney
Ok, I know you all will be gawfawed at my ignorance I have very little experience working with computer languages such as basic. I have been digging through all of the examples and tutorials but evidently what I am accustomed to in Lotus Approach is different here or I have missed something.
Fighting the Learning Curve.
I want to use data input into fields by the user to be processed and show up to be stored in another field using a function. (This is the fundamental aspect of programming data bases.)
Approach will let you reference the field inside the function and the field you want the data
to show up in. I don't see how to do that here. It looks like I have to make variables to get the info into the expressions or functions. I don't know.
So I have Three fields and they are type-in-fields on the form they reflect the respective fields in the table. I have a Form_date field (Date) and a Birth_date field (Date) I made these two fields smart calendar fields. I also have the Age_as_of_form_date field (Numeric) or should this be a text or a date field?
The user has to supply the form date and the birth date. Now I want the age of the person to show up in the Age_as_of_form_date field. Seems simple enough and Alpha's help files give examples of this kind of thing using dates over and over but basically they show the info already written into the function. I am interested in making it dynamic. I don't see how to get the info from one field to another. I found the Age Function.
(I don't know of any programming language that has an age function.) So great! The syntax I see in the code editor on the actions script is age(d dob [,d asofdate ]). Age() is supposed to return a numeric value but the input I have is date value. So do I have to change the date value to numeric to use the function? How do I do this? I have tried to make variables but I get either invalid or incomplete expression errors or that it doesn't evaluate to numeric.
A bit lost.
Any insight will be truly appreciated
Thank you George R. Kenney
Comment