>Hello guys,
>
>In the sample programs i have viewed, I've tried to understand the code the is being presented. There are some codes that attracts my attention (actually I don't know hot to do them). Some of this are:
>
>In the program i have downloaded I saw a code somthing ike this
>
>thisform.nprice()
>thisform.show_details()
>
>where do these [show_details()& nprice()] came from. is these a function method or what?
>How can I create that?
>
>
>Thanks!
Hi Virgilio,
You need to do a little bit of reading on OOP in order to learn more about these things, but in the meantime, here's the answer so you can get started...
nprice() and show_details() are METHODS that were added by the programmer to the form.
If you double-click on the form itself (in design mode) or look at the METHODS tab in the form's properties window (you get it by right-clicking on the form itself - also in design mode).
These methods are called from another method on the same form, and the "ThisForm" qualifier tells vfp that the code it must execute lies inside the form itself. If the methods where elsewhere, the qualifiers would be different (i.e. Container1.showPrice()).
Good luck, and keep the questions coming!!!
Alex
Low-carb diet not working? Try the Low-food diet instead!