clear/flush @bk

Tom Aldridge toma at aldridgeinc.com
Wed Sep 5 10:57:11 PDT 2012


On 9/5/2012 9:01 AM, Kenneth Brody wrote:
> On 9/4/2012 5:16 PM, Tom Aldridge wrote:
>> On 9/4/2012 3:13 PM, Kenneth Brody wrote:> On 9/4/2012 4:00 PM, Tom
>> Aldridge
>> wrote:
>>  >> Is there a way to clear the value of @bk?
>>  >>
>>  >> E.g. msgbox presents a Y/N question. Answer is N.
>>  >> Next field presents the same question.
>>  >> @bk already filled with N.
>>  >>
>>  >> I know an input popup could be used and then the var could be
>> cleared.
>>  >> Is that recommended or is there a way to clear the value of @bk
>> (other
>>  >> then exiting processing).
>>  >
>>  > Why do you need to clear it?  Just ask the question again, and mesgbox
>>  > will set @BK to the new value.
>>  >
>>
>> Do a lookup
>> If no records found, do you want to add a record? Y/N.
>> Answer is N
>> Move to next field.
>> Do a lookup
>> If no records found, do you want to add a record? Y/N
>>
>> Answer is already "N"
>>
>> Wanting @bk reset after the first question.
>
> What do you mean "answer is already 'N'"?  Yes, @BK contains "N", but so
> what?  Once you execute the second mesgbox, the previous value of @BK is
> gone, and it will be set to the answer of the second mesgbox.
>

Sorry I didn't explain it sufficiently in my example, but Richard 
Kreiss' answer of setting another variable and testing for that, solved 
the problem. Thanks.

Tom



More information about the Filepro-list mailing list