I am having something wierd going on in VFP 9. I have a formset and go to
form -> new method to create a method. I type in the name "testMethod" and
hit add. This then adds the method to the currently active form in my
formset, and not to the formset. I can go into the form.testMethod and add
code to it. When I save and close out of the formset and then go back in,
the method does not show up under the form nor does it show up under the
formset. My workaround is to go to edit property method in the menu and
then do add method there. Then everything works fine. Is anybody else
having this same issue?



P.S. I know formsets are not the best way to do things but I am working
with old code and it would be alot of work to get them out of formsets.

--
TIA

Altman
VFP9

Re: Add Method Problem by Stefan

Stefan
Tue Aug 23 01:28:07 CDT 2005

Did you try if the SCX/SCT files may be corrupted?, e.g.
Use yourFormset.SCX Exclusive, PACK, Copy To anotherFormset.SCX


hth
-Stefan



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------


"Altman" <NotGiven@SickOfSpam.com> schrieb im Newsbeitrag
news:etSb6e1pFHA.272@TK2MSFTNGP15.phx.gbl...
>I am having something wierd going on in VFP 9. I have a formset and go to form -> new
>method to create a method. I type in the name "testMethod" and hit add. This then adds
>the method to the currently active form in my formset, and not to the formset. I can go
>into the form.testMethod and add code to it. When I save and close out of the formset
>and then go back in, the method does not show up under the form nor does it show up under
>the formset. My workaround is to go to edit property method in the menu and then do add
>method there. Then everything works fine. Is anybody else having this same issue?
>
>
>
> P.S. I know formsets are not the best way to do things but I am working with old code
> and it would be alot of work to get them out of formsets.
>
> --
> TIA
>
> Altman
> VFP9
>
>



Re: Add Method Problem by Altman

Altman
Tue Aug 23 08:18:41 CDT 2005

Well just as a test I created a new formset with 2 forms in it and tried to
add a method and I get the same result with a brand new formset.


"Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
news:eDXDsv6pFHA.3112@TK2MSFTNGP12.phx.gbl...
> Did you try if the SCX/SCT files may be corrupted?, e.g.
> Use yourFormset.SCX Exclusive, PACK, Copy To anotherFormset.SCX
>
>
> hth
> -Stefan
>
>
>
> --
> |\_/| ------ ProLib - programmers liberty -----------------
> (.. ) Our MVPs and MCPs make the Fox run....
> - / See us at www.prolib.de or www.AFPages.de
> -----------------------------------------------------------
>
>
> "Altman" <NotGiven@SickOfSpam.com> schrieb im Newsbeitrag
> news:etSb6e1pFHA.272@TK2MSFTNGP15.phx.gbl...
>>I am having something wierd going on in VFP 9. I have a formset and go to
>>form -> new method to create a method. I type in the name "testMethod"
>>and hit add. This then adds the method to the currently active form in my
>>formset, and not to the formset. I can go into the form.testMethod and
>>add code to it. When I save and close out of the formset and then go back
>>in, the method does not show up under the form nor does it show up under
>>the formset. My workaround is to go to edit property method in the menu
>>and then do add method there. Then everything works fine. Is anybody
>>else having this same issue?
>>
>>
>>
>> P.S. I know formsets are not the best way to do things but I am working
>> with old code and it would be alot of work to get them out of formsets.
>>
>> --
>> TIA
>>
>> Altman
>> VFP9
>>
>>
>
>



Re: Add Method Problem by Altman

Altman
Tue Aug 23 08:28:26 CDT 2005

I think it has something to do with _memberdata. I noticed that the first
time I did it I couldn't find my method so I did a code references search on
my method and one things that showed up was in the _memberdata of the form
(where really it should've been for the formset). I also noticed that if
you go to edit property method in VFP 9 the form looks different and the
behavior is different. If I would make a method in edit property method
called "TestMethod" it changes it all lower case. Where if I would to that
under the new method menu item, it would keep the caps and smalls. I think
this is done through the _memberdata. I still don't know how I can fix it
but just a rambling thought that something is messed up in the _memberdata.

Is no one else getting this same problem??


"Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
news:eDXDsv6pFHA.3112@TK2MSFTNGP12.phx.gbl...
> Did you try if the SCX/SCT files may be corrupted?, e.g.
> Use yourFormset.SCX Exclusive, PACK, Copy To anotherFormset.SCX
>
>
> hth
> -Stefan
>
>
>
> --
> |\_/| ------ ProLib - programmers liberty -----------------
> (.. ) Our MVPs and MCPs make the Fox run....
> - / See us at www.prolib.de or www.AFPages.de
> -----------------------------------------------------------
>
>
> "Altman" <NotGiven@SickOfSpam.com> schrieb im Newsbeitrag
> news:etSb6e1pFHA.272@TK2MSFTNGP15.phx.gbl...
>>I am having something wierd going on in VFP 9. I have a formset and go to
>>form -> new method to create a method. I type in the name "testMethod"
>>and hit add. This then adds the method to the currently active form in my
>>formset, and not to the formset. I can go into the form.testMethod and
>>add code to it. When I save and close out of the formset and then go back
>>in, the method does not show up under the form nor does it show up under
>>the formset. My workaround is to go to edit property method in the menu
>>and then do add method there. Then everything works fine. Is anybody
>>else having this same issue?
>>
>>
>>
>> P.S. I know formsets are not the best way to do things but I am working
>> with old code and it would be alot of work to get them out of formsets.
>>
>> --
>> TIA
>>
>> Altman
>> VFP9
>>
>>
>
>



Re: Add Method Problem by Dan

Dan
Tue Aug 23 11:44:02 CDT 2005

There is definitely something fishy with formsets. (Which shows you how many
people use them -- this didn't show up during beta.)

I created a blank form, added a Formset, and added another form. I created a
method in the 2nd form, and opening a code window shows that new method.
Opening the member data editor does NOT show anything for the second form at
all, only the first form.

I'm not really sure how all of this is supposed to work, but this doesn't
look right to me. <s>

Dan

Altman wrote:
> I think it has something to do with _memberdata. I noticed that the
> first time I did it I couldn't find my method so I did a code
> references search on my method and one things that showed up was in
> the _memberdata of the form (where really it should've been for the
> formset). I also noticed that if you go to edit property method in
> VFP 9 the form looks different and the behavior is different. If I
> would make a method in edit property method called "TestMethod" it
> changes it all lower case. Where if I would to that under the new
> method menu item, it would keep the caps and smalls. I think this is
> done through the _memberdata. I still don't know how I can fix it
> but just a rambling thought that something is messed up in the
> _memberdata.
>
> Is no one else getting this same problem??
>
>
> "Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
> news:eDXDsv6pFHA.3112@TK2MSFTNGP12.phx.gbl...
>> Did you try if the SCX/SCT files may be corrupted?, e.g.
>> Use yourFormset.SCX Exclusive, PACK, Copy To anotherFormset.SCX
>>
>>
>> hth
>> -Stefan
>>
>>
>>
>> --
>>> \_/| ------ ProLib - programmers liberty -----------------
>> (.. ) Our MVPs and MCPs make the Fox run....
>> - / See us at www.prolib.de or www.AFPages.de
>> -----------------------------------------------------------
>>
>>
>> "Altman" <NotGiven@SickOfSpam.com> schrieb im Newsbeitrag
>> news:etSb6e1pFHA.272@TK2MSFTNGP15.phx.gbl...
>>> I am having something wierd going on in VFP 9. I have a formset
>>> and go to form -> new method to create a method. I type in the
>>> name "testMethod" and hit add. This then adds the method to the
>>> currently active form in my formset, and not to the formset. I can
>>> go into the form.testMethod and add code to it. When I save and
>>> close out of the formset and then go back in, the method does not
>>> show up under the form nor does it show up under the formset. My
>>> workaround is to go to edit property method in the menu and then do
>>> add method there. Then everything works fine. Is anybody else
>>> having this same issue?
>>>
>>>
>>>
>>> P.S. I know formsets are not the best way to do things but I am
>>> working with old code and it would be alot of work to get them out
>>> of formsets.
>>>
>>> --
>>> TIA
>>>
>>> Altman
>>> VFP9



Re: Add Method Problem by Altman

Altman
Tue Aug 23 13:22:35 CDT 2005

So I am not the only one with this issue. When you go to add a method with
the formset, the method should get added to the formset and not any of the
forms. And this is the way it works if you go to edit property/method and
then add it there. Also notice that if you save your formset after you have
added the method and then try to edit the formset, you can't get back to the
method you just created.


"Dan Freeman" <spam@microsoft.com> wrote in message
news:urLBgHAqFHA.2072@TK2MSFTNGP14.phx.gbl...
> There is definitely something fishy with formsets. (Which shows you how
> many
> people use them -- this didn't show up during beta.)
>
> I created a blank form, added a Formset, and added another form. I created
> a
> method in the 2nd form, and opening a code window shows that new method.
> Opening the member data editor does NOT show anything for the second form
> at
> all, only the first form.
>
> I'm not really sure how all of this is supposed to work, but this doesn't
> look right to me. <s>
>
> Dan
>
> Altman wrote:
>> I think it has something to do with _memberdata. I noticed that the
>> first time I did it I couldn't find my method so I did a code
>> references search on my method and one things that showed up was in
>> the _memberdata of the form (where really it should've been for the
>> formset). I also noticed that if you go to edit property method in
>> VFP 9 the form looks different and the behavior is different. If I
>> would make a method in edit property method called "TestMethod" it
>> changes it all lower case. Where if I would to that under the new
>> method menu item, it would keep the caps and smalls. I think this is
>> done through the _memberdata. I still don't know how I can fix it
>> but just a rambling thought that something is messed up in the
>> _memberdata.
>>
>> Is no one else getting this same problem??
>>
>>
>> "Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
>> news:eDXDsv6pFHA.3112@TK2MSFTNGP12.phx.gbl...
>>> Did you try if the SCX/SCT files may be corrupted?, e.g.
>>> Use yourFormset.SCX Exclusive, PACK, Copy To anotherFormset.SCX
>>>
>>>
>>> hth
>>> -Stefan
>>>
>>>
>>>
>>> --
>>>> \_/| ------ ProLib - programmers liberty -----------------
>>> (.. ) Our MVPs and MCPs make the Fox run....
>>> - / See us at www.prolib.de or www.AFPages.de
>>> -----------------------------------------------------------
>>>
>>>
>>> "Altman" <NotGiven@SickOfSpam.com> schrieb im Newsbeitrag
>>> news:etSb6e1pFHA.272@TK2MSFTNGP15.phx.gbl...
>>>> I am having something wierd going on in VFP 9. I have a formset
>>>> and go to form -> new method to create a method. I type in the
>>>> name "testMethod" and hit add. This then adds the method to the
>>>> currently active form in my formset, and not to the formset. I can
>>>> go into the form.testMethod and add code to it. When I save and
>>>> close out of the formset and then go back in, the method does not
>>>> show up under the form nor does it show up under the formset. My
>>>> workaround is to go to edit property method in the menu and then do
>>>> add method there. Then everything works fine. Is anybody else
>>>> having this same issue?
>>>>
>>>>
>>>>
>>>> P.S. I know formsets are not the best way to do things but I am
>>>> working with old code and it would be alot of work to get them out
>>>> of formsets.
>>>>
>>>> --
>>>> TIA
>>>>
>>>> Altman
>>>> VFP9
>
>