I don't clearly understand the relationship between the form and the procedure. Which runs first? Do you want to pass data from the procedure to the form, or the other way round?
>I have a little problem understanding procedures and functions. I have a procedure called basedarti stored in a Program named findart. In my procedure I have 5 memory variables where I store information into them. Here is my code:
>
>
>PROCEDURE basearti()
> STORE "F*0001" TO cArtikey
> STORE "ZOOM" TO cSupplier
> STORE "YES" TO cNewsupplier
>ENDPROC
>
>
>What I would like to do is when my form is initialised I would like to show the value of cArtikey in text1 field.........cSupplier in text2 field etc.
>
>
>Therefore in my main.prg I do set procedure to findart. How do I call the procedure and subsequently pipe the information from the variable to the fields on my form. I need to re-use this syntax thats why I created a procedure.
>
>Do I have to Do basearti with findart etc in my text control? Im at a little bit of a loss at the moment as I am trying to learn procedures, functions etc......
>
>
>Many thanks in advance
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)