# How to use Browse ResetFromAsk?

**URL:** <https://clarionhub.com/t/how-to-use-browse-resetfromask/6161>\
**Category:** questions\
**Tags:** browse, abc\
**Created:** [April 18, 2023, 9:02pm UTC](https://clarionhub.com/t/how-to-use-browse-resetfromask/6161 "2023-04-18T21:02:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThalesSilveirs](https://clarionhub.com/user_avatar/clarionhub.com/thalessilveirs/32/3642_2.png) [@ThalesSilveirs](https://clarionhub.com/u/ThalesSilveirs)\
**Post date:** [April 18, 2023, 9:02pm UTC](https://clarionhub.com/t/how-to-use-browse-resetfromask/6161/1 "2023-04-18T21:02:21Z")

</div>

As the title says, I want to understand, it has two sentences, \*BYTE Request and \* BYTE Response  
But even if you just put a MESSAGE inside, it's not activated.

---

<div class="post-metadata">

**Author:** ![Rick\_UpperPark](https://clarionhub.com/user_avatar/clarionhub.com/rick_upperpark/32/346_2.png) [@Rick\_UpperPark](https://clarionhub.com/u/Rick_UpperPark)\
**Post date:** [April 18, 2023, 9:16pm UTC](https://clarionhub.com/t/how-to-use-browse-resetfromask/6161/2 "2023-04-18T21:16:54Z")

</div>

Can you be more specific? What do you mean by “how to use”?  
This is the method called by the browse class after completing an insert/update/delete operation to refresh the list control. It is called both after using edit-in-place or update form for the editing.

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [April 18, 2023, 9:50pm UTC](https://clarionhub.com/t/how-to-use-browse-resetfromask/6161/3 "2023-04-18T21:50:48Z")

</div>

Read the code inside LibSrc\win\AbBrowse.CLW, .INC, .EQU

It will help to have open a generated Browse to see the calls, and probably LibSrc AbWindow.clw.

Searching AbBrowse.CLW you’ll find…  
`BrowseClass.ResetFromAsk(Request,Response)` is called by `BrowseClass.Ask(Request) `

`BrowseClass.Ask(Request)` is called by `BrowseClass.TakeEvent()` with Request based on if Accepted() was .ChangeControl or .DeleteControl or .InsertControl etc.

---

<div class="post-metadata">

**Author:** ![totalhip](https://clarionhub.com/user_avatar/clarionhub.com/totalhip/32/1477_2.png) [@totalhip](https://clarionhub.com/u/totalhip)\
**Post date:** [April 18, 2023, 10:49pm UTC](https://clarionhub.com/t/how-to-use-browse-resetfromask/6161/4 "2023-04-18T22:49:44Z")

</div>

Have always wondered why the method passes Request, Response by address rather than just values?

---

<div class="post-metadata">

**Author:** ![Rick\_UpperPark](https://clarionhub.com/user_avatar/clarionhub.com/rick_upperpark/32/346_2.png) [@Rick\_UpperPark](https://clarionhub.com/u/Rick_UpperPark)\
**Post date:** [April 18, 2023, 11:38pm UTC](https://clarionhub.com/t/how-to-use-browse-resetfromask/6161/5 "2023-04-18T23:38:38Z")

</div>

It is a very annoying choice.  
Here’s what I do.  
All of my browse classes are set to use my own derived browse class.  
In MyBrowseClass (not the real name 🙂 ) declare:

```auto
DoResetFromAsk procedure(byte pRequest, byte pResponse)

```

The the code for this method is:

```auto
MyBrowseClass.DoResetFromAsk PROCEDURE(byte pRequest, byte pResponse)
  CODE
  Self.ResetFromAsk(pRequest,pResponse)
  Return

```

This allows you to easily call ResetFromAsk from anywhere in the procedure and you can pass in the equates like ChangeRecord and RequestComplete.

---

<div class="post-metadata">

**Author:** ![totalhip](https://clarionhub.com/user_avatar/clarionhub.com/totalhip/32/1477_2.png) [@totalhip](https://clarionhub.com/u/totalhip)\
**Post date:** [April 19, 2023, 3:09am UTC](https://clarionhub.com/t/how-to-use-browse-resetfromask/6161/6 "2023-04-19T03:09:27Z")

</div>

My preferred re-write too. My guess is the address parameters are a relic from early unreleased ABC that never got changed.

---

<div class="post-metadata">

**Author:** ![ThalesSilveirs](https://clarionhub.com/user_avatar/clarionhub.com/thalessilveirs/32/3642_2.png) [@ThalesSilveirs](https://clarionhub.com/u/ThalesSilveirs)\
**Post date:** [April 19, 2023, 11:37am UTC](https://clarionhub.com/t/how-to-use-browse-resetfromask/6161/7 "2023-04-19T11:37:20Z")

</div>

Tks for everyone!  
But, error compiling on C9, seems to ignore new instructions. I have to reset everything.  
I don’t know if it’s C9 + Win11…

---

<div class="post-metadata">

**Author:** ![Rick\_UpperPark](https://clarionhub.com/user_avatar/clarionhub.com/rick_upperpark/32/346_2.png) [@Rick\_UpperPark](https://clarionhub.com/u/Rick_UpperPark)\
**Post date:** [April 19, 2023, 2:17pm UTC](https://clarionhub.com/t/how-to-use-browse-resetfromask/6161/8 "2023-04-19T14:17:56Z")

</div>

What specifically are the errors?

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [April 20, 2023, 11:43am UTC](https://clarionhub.com/t/how-to-use-browse-resetfromask/6161/9 "2023-04-20T11:43:58Z")

</div>

> [@totalhip](#):
>
> why the method passes Request, Response by address rather than just values?

So it can change the \*variable value and affect the caller, i.e. an “In Out” parameter.

Away from PC so IIRC saw an IF change Request. I think it was for VCR which I doubt anyone uses, but is still supported. IIRC .Ask had a LOOP until some VCR thing.

It is Virtual so a Derived method could change those as \*Out. Also DAB could have done the \*Out for some future thing he thought may be useful.
