Skip to main content

[Migrated content. Thread originally posted on 15 October 2004]

I have the F8-key programmed as the key to delete records. So when inquiring a customer, pressing F8 will delete the customer after the user has been prompted with a message-box, asking to delete this customer Yes/No...

In the customer-form, there's a TAB-control. On one of these tabs there's a GRID-control.

Now, if I go to the grid and press the BACKSPACE, my software act as if the F8-key is pressed, asking to delete this record ?

How can I evoid this behavior ?

[Migrated content. Thread originally posted on 15 October 2004]

I have the F8-key programmed as the key to delete records. So when inquiring a customer, pressing F8 will delete the customer after the user has been prompted with a message-box, asking to delete this customer Yes/No...

In the customer-form, there's a TAB-control. On one of these tabs there's a GRID-control.

Now, if I go to the grid and press the BACKSPACE, my software act as if the F8-key is pressed, asking to delete this record ?

How can I evoid this behavior ?
Do you have anything for "ZB" in your A_CONFIG file?

The ASCII value for backspace is 8 (^H), so if F8 is also causing an exception value of 8, that is probably why they act the same. But I am not sure why backspace would be creating an exception.

I have not tried it, but you could try putting something like this in your A_CONFIG file:

KEYSTROKE Edit=Backspace ZB

[Migrated content. Thread originally posted on 15 October 2004]

I have the F8-key programmed as the key to delete records. So when inquiring a customer, pressing F8 will delete the customer after the user has been prompted with a message-box, asking to delete this customer Yes/No...

In the customer-form, there's a TAB-control. On one of these tabs there's a GRID-control.

Now, if I go to the grid and press the BACKSPACE, my software act as if the F8-key is pressed, asking to delete this record ?

How can I evoid this behavior ?
Do you have anything for "ZB" in your A_CONFIG file?

The ASCII value for backspace is 8 (^H), so if F8 is also causing an exception value of 8, that is probably why they act the same. But I am not sure why backspace would be creating an exception.

I have not tried it, but you could try putting something like this in your A_CONFIG file:

KEYSTROKE Edit=Backspace ZB

[Migrated content. Thread originally posted on 15 October 2004]

I have the F8-key programmed as the key to delete records. So when inquiring a customer, pressing F8 will delete the customer after the user has been prompted with a message-box, asking to delete this customer Yes/No...

In the customer-form, there's a TAB-control. On one of these tabs there's a GRID-control.

Now, if I go to the grid and press the BACKSPACE, my software act as if the F8-key is pressed, asking to delete this record ?

How can I evoid this behavior ?
I tried changing my configuration file but backspace still act as F8.
My exeption range = 1,31

I attached a small program for you to see what happens.

[Migrated content. Thread originally posted on 15 October 2004]

I have the F8-key programmed as the key to delete records. So when inquiring a customer, pressing F8 will delete the customer after the user has been prompted with a message-box, asking to delete this customer Yes/No...

In the customer-form, there's a TAB-control. On one of these tabs there's a GRID-control.

Now, if I go to the grid and press the BACKSPACE, my software act as if the F8-key is pressed, asking to delete this record ?

How can I evoid this behavior ?
I think what Joe is saying is that you need to set your Backspace key to a different exception value. For instance, in our accounting application we set the backspace to exception value to 91 which avoids F8 conflict:

KEYSTROKE Edit=Backspace Exception=91 ZB

I ran this config setting with your sample program and it works for me.

Not sure what will happen if your limiting your exception range to 1,31. You could use an exception value in that range for backspace or expand your range.

[Migrated content. Thread originally posted on 15 October 2004]

I have the F8-key programmed as the key to delete records. So when inquiring a customer, pressing F8 will delete the customer after the user has been prompted with a message-box, asking to delete this customer Yes/No...

In the customer-form, there's a TAB-control. On one of these tabs there's a GRID-control.

Now, if I go to the grid and press the BACKSPACE, my software act as if the F8-key is pressed, asking to delete this record ?

How can I evoid this behavior ?
This works just fine DanM, even with exception range 1,31

Thanks alot

[Migrated content. Thread originally posted on 15 October 2004]

I have the F8-key programmed as the key to delete records. So when inquiring a customer, pressing F8 will delete the customer after the user has been prompted with a message-box, asking to delete this customer Yes/No...

In the customer-form, there's a TAB-control. On one of these tabs there's a GRID-control.

Now, if I go to the grid and press the BACKSPACE, my software act as if the F8-key is pressed, asking to delete this record ?

How can I evoid this behavior ?
This works just fine DanM, even with exception range 1,31

Thanks alot