Maybe someone can help me with this. It's probably so simple it is taken for granted in all the books, but I still don't understand how to do this effectively.
Lets' say I have an app that allows a user to select a record from a database, then it calls another form which is used to display data about the record selected.
I want to pass the record key from the first for to the second form without having to store it in a public variable, where the first form puts it and the second form reads it. I want to pass it directly to the second form when I issue it the show command.
Is it possible to pass arguments directly to a form-level variable? Is the answer calling a procedure in the second form from the first form, and passing the arguments that way? If I want to return a value back to the originating form, do I need to make this procedure a function?
What would be the best way of doing this?
Lets' say I have an app that allows a user to select a record from a database, then it calls another form which is used to display data about the record selected.
I want to pass the record key from the first for to the second form without having to store it in a public variable, where the first form puts it and the second form reads it. I want to pass it directly to the second form when I issue it the show command.
Is it possible to pass arguments directly to a form-level variable? Is the answer calling a procedure in the second form from the first form, and passing the arguments that way? If I want to return a value back to the originating form, do I need to make this procedure a function?
What would be the best way of doing this?