main logo
Subject: Re: passing parameter ?
Author: graeme thomson
Posted: 2001/10/04 04:34:44
 
View Entire Thread
New Search


<i><font color="#663300">Thanks to everyone's help I am moving forward again! YEAH! Now I have more questions!

I have a one-to-many form that displays data and a double click will let you edit the related table (a separate modal form for each view on the form) For instance, my contact management form has 3 views -- District, Contact and Marketing

Double clicking on the District name brings up a modal form that allows you to edit/add/delete records in lv_District. When I first built this form (before moving everything to CB61) I used

do form AboDistrictForm with thisform.iid, m.liid, .f.

to pass the parameter of the currently displayed record to the modal form. With cb61 I am using

doform ("AboDistrictForm", [district.iid])

but it's not passing the parameter and the modal form comes up at the first record in the ordered view --- not the record that is being displayed.

What is wrong with my "doform" statement?

BTW, when I close the modal form, the underlying form moves to the record that was last displayed in the modal form --- but doesn't refresh the form (I added a thisform.refresh() to the GotFocus method of the main form -- hoping that will fix the last part?)

Thanks for ANY help on this!
</font></i>

try leaving out the square brackets. square brackets are the same as "" so you are passing a name not a variable
 
©2001 graeme thomson
<-- Prior Message New Search Next Message -->