Click on a command button does some stuff
I have this code:
public mproceed
mproceed = .t.
thisform.whatever(mproceed)
Inside whatever: If this condition, mproceed = .f.
return mproceed
go back to the button click and mproceed is .t.
Code blows up....
Long day I guess...
Yikes....
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAAJXvaMyM_DXe0_tRR=jY4BUHcJZYJTPWOaVhy_1W1ooccUmvQ@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Desmond Lloyd wrote on 2012-10-31:
> Click on a command button does some stuff
> I have this code:
>
> public mproceed
> mproceed = .t.
>
> thisform.whatever(mproceed)
>
> Inside whatever: If this condition, mproceed = .f.
> return mproceed
> go back to the button click and mproceed is .t.
>
> Code blows up....
>
> Long day I guess...
>
> Yikes....
>
Desmond,
Public?
Try this
local mproceed
mproceed = .t.
mproceed = thisform.whatever(mproceed)
Tracy Pearson
PowerChurch Software
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/000c01cdb799$f25098e0$d6f1caa0$@powerchurch.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Awesome, it worked! 8-) Ahhh, but you already knew that....
Thanks Again!
Desmond
On 31 October 2012 14:00, Tracy Pearson <tracy@powerchurch.com> wrote:
> Desmond Lloyd wrote on 2012-10-31:
> > Click on a command button does some stuff
> > I have this code:
> >
> > public mproceed
> > mproceed = .t.
> >
> > thisform.whatever(mproceed)
> >
> > Inside whatever: If this condition, mproceed = .f.
> > return mproceed
> > go back to the button click and mproceed is .t.
> >
> > Code blows up....
> >
> > Long day I guess...
> >
> > Yikes....
> >
>
> Desmond,
>
> Public?
>
> Try this
> local mproceed
> mproceed = .t.
>
> mproceed = thisform.whatever(mproceed)
>
>
>
> Tracy Pearson
> PowerChurch Software
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAAJXvaNWSnK_qUgp5=FR0uk929xDhfud6dXHeou=cuJ2=-x-ZQ@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
As always, Tracy hits right on the nail.
However, I would discourage the use of public properties.
It is better if you create a form property, which will be available to
all the form's methods, but will not interfere with any other form or
program that you run.
In that case, your code would be:
** form init event
thisform.addproperty('mproceed',.t.)
** button code
thisform. mproceed = .t.
thisform.whatever()
** there is no need for you to pass the value of thisform.mproceed as a
parameter to the whatever method, since it can pick up the property
value directly, as it is a form property
Rafael Copquin
El 31/10/2012 04:18 p.m., Desmond Lloyd escribió:
> Awesome, it worked! 8-) Ahhh, but you already knew that....
>
> Thanks Again!
> Desmond
>
>
>
>
> On 31 October 2012 14:00, Tracy Pearson <tracy@powerchurch.com> wrote:
>
>> Desmond Lloyd wrote on 2012-10-31:
>>> Click on a command button does some stuff
>>> I have this code:
>>>
>>> public mproceed
>>> mproceed = .t.
>>>
>>> thisform.whatever(mproceed)
>>>
>>> Inside whatever: If this condition, mproceed = .f.
>>> return mproceed
>>> go back to the button click and mproceed is .t.
>>>
>>> Code blows up....
>>>
>>> Long day I guess...
>>>
>>> Yikes....
>>>
>> Desmond,
>>
>> Public?
>>
>> Try this
>> local mproceed
>> mproceed = .t.
>>
>> mproceed = thisform.whatever(mproceed)
>>
>>
>>
>> Tracy Pearson
>> PowerChurch Software
>>
>>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/5091883B.9070103@fibertel.com.ar
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Rafael Copquin wrote on 2012-10-31:
> As always, Tracy hits right on the nail.
>
Rafael,
http://deviq.com/golden-hammer
Tracy Pearson
PowerChurch Software
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/001201cdb83d$42043420$c60c9c60$@powerchurch.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Wow! I'm sure you're better looking than the Golden Hammer :-)
BTW, when I said "hits right on the nail" I was simply making a literal
translation from a Spanish language phrase that is used to express the
fact that the person in question came up with the correct answer to a
problem.
Take care
Rafael Copquin
El 01/11/2012 11:29 a.m., Tracy Pearson escribió:
> Rafael Copquin wrote on 2012-10-31:
>> As always, Tracy hits right on the nail.
>>
> Rafael,
>
> http://deviq.com/golden-hammer
>
> Tracy Pearson
> PowerChurch Software
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/5092944B.8010303@fibertel.com.ar
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
A commonly used term indeed!
Sent via BlackBerry by AT&T
-----Original Message-----
From: Rafael Copquin <rcopquin@fibertel.com.ar>
Sender: "ProFox" <profox-bounces@leafe.com>Date: Thu, 01 Nov 2012 12:24:59
To: <profox@leafe.com>
Reply-To: ProFox Email List <profox@leafe.com>
Subject: Re: Silly Form Question: VFP
Wow! I'm sure you're better looking than the Golden Hammer :-)
BTW, when I said "hits right on the nail" I was simply making a literal
translation from a Spanish language phrase that is used to express the
fact that the person in question came up with the correct answer to a
problem.
Take care
Rafael Copquin
El 01/11/2012 11:29 a.m., Tracy Pearson escribió:
> Rafael Copquin wrote on 2012-10-31:
>> As always, Tracy hits right on the nail.
>>
> Rafael,
>
> http://deviq.com/golden-hammer
>
> Tracy Pearson
> PowerChurch Software
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/5092944B.8010303@fibertel.com.ar
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On Nov 1, 2012, at 10:24 AM, Rafael Copquin <rcopquin@fibertel.com.ar> wrote:
> BTW, when I said "hits right on the nail" I was simply making a literal translation from a Spanish language phrase that is used to express the fact that the person in question came up with the correct answer to a problem.
The English version of that phrase is "hit the nail on the head".
-- Ed Leafe
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/F434B96E-5284-4D9F-88C7-CBC13E4C827B@rackspace.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Rafael Copquin wrote on 2012-11-01:
> Wow! I'm sure you're better looking than the Golden Hammer :-)
>
> BTW, when I said "hits right on the nail" I was simply making a literal
> translation from a Spanish language phrase that is used to express the
> fact that the person in question came up with the correct answer to a
> problem.
>
> Take care
> Rafael Copquin
>
Rafael,
I knew what you meant. The statement reminded me of the web page. So I
looked it up and shared it.
As for better looking, I'm sure that's relative. I have a full beard and
nearly bald.
Tracy Pearson
PowerChurch Software
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/001301cdb849$285847d0$7908d770$@powerchurch.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Every day your learn something new:-)
Thanks
Rafael
El 01/11/2012 12:38 p.m., Ed Leafe escribió:
> On Nov 1, 2012, at 10:24 AM, Rafael Copquin <rcopquin@fibertel.com.ar> wrote:
>
>> BTW, when I said "hits right on the nail" I was simply making a literal translation from a Spanish language phrase that is used to express the fact that the person in question came up with the correct answer to a problem.
> The English version of that phrase is "hit the nail on the head".
>
>
> -- Ed Leafe
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/5092AC47.4090407@fibertel.com.ar
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.