Submitted by DavidF on 2016/07/25 07:05
hi,
 
I'm getting a frequent "subscript out of range" error message when I copy cells in a grid. Ctrl-Shift-C is Ok - the one that gives you all the options. But Ctrl-C gets you the error. These are cases where all I'm doing is copying/pasting text from one cell to another within the grid. Nothing happens, except you get that message - the copy/paste operation itself works OK.
 
It also seems that if you have the Item field selected when you do Ctrl-C, you get the "What do you want to copy?" message anyway, so there's no error message in that case. In any other field, Ctrl-C always -> "subscript out of range".
 
DavidF.
 
 

Comments

Hi David,
 
I have also encountered the error message before, however a restart of the program always fixed things for whatever reasons.
 
Btw from my understanding you get the "What do you want to copy" message NOT when you have just the Item field selected, but when the WHOLE Item is selected (the entire row is highlighted, not only a specific field). There is also a command for this - "Select Item".
 
ethanrox

DavidF

2016/07/25 10:54

In reply to by ethanrox

I'm definitely getting the "What do you want to copy" box with ctrl-C when just the Item field is selected, not the whole row. I think the idea is it gives you the option of working on the whole row, whether it's selected or not.
 
But I'm finding all the behaviour I described varies by database. I've just tried this in a different database, and Ctrl-C gets no error message at all. Ctrl-C in the Item field just does a straightforward copy of the Item text, ready to paste into any other cell. Ctrl-shift-C in any cell, Item or otherwise, gives the list of options. In other words, all working as intended I imagine.
 
DavidF.

ethanrox

2016/07/25 11:24

In reply to by DavidF

Strange for that particular database. Maybe there is somehow another field selected which triggers the Dialog Pop-up (at least two fields selected, one of which being the tree column as Pierre has written in the post below)...
 
Thanks for the clarification, I didn't use the Ctrl+Shift+C shortcut before, seems like a better way than Select Item + Ctrl+C :)

Pierre_Admin

2016/07/25 11:01

In reply to by ethanrox

[quote=ethanrox]
Btw from my understanding you get the "What do you want to copy" message NOT when you have just the Item field selected, but when the WHOLE Item is selected (the entire row is highlighted, not only a specific field)
[/quote]
The dialog appears when at least 2 columns are selected, one of which is the tree column
HTH !
 
Pierre_Admin
IQ Designer
 

ethanrox

2016/07/25 11:11

In reply to by Pierre_Admin

Thanks for clarifying, Pierre :)

DavidF

2016/07/25 11:41

In reply to by Pierre_Admin

I can see the logic there, Pierre; but for me, ctrl-sh-C always brings up the extended option, ctrl-C always does basic copying of text. These apply whether one or several fields selected, and whether it's the Tree field or not.
 
The "subscript out of range" error (not all db's, not all the time) is annoying, but it doesn't prevent the copying and pasting operation, so there is that.
 
DavidF.

Pierre_Admin

2016/07/25 11:52

In reply to by DavidF

[quote=DavidF]
  1. for me, ctrl-sh-C always brings up the extended option,
  2. ctrl-C always does basic copying of text. These apply whether one or several fields selected, and whether it's the Tree field or not.
[/quote]
  1. Correct, by design
  2. Humm... please try it again. I've look at the code and if the tree column is selected and at least another is also selected, the dialog will appear
HTH !
 
Pierre_Admin
IQ Designer
 

DavidF

2016/07/25 12:46

In reply to by Pierre_Admin

2. Yes, you are correct (of course)! I was taking "more than one" as any arbitrary selection of cells. But if as you say one of those cells is the tree column, Ctrl-C will give the extended option.
 
Any thoughts on "subscript out of range"? It's annoying but intermittent, and in the database where I was encountering it recently, closing and reopening made it stop doing it.
 
DavidF.

Pierre_Admin

2016/07/25 12:50

In reply to by DavidF

[quote=DavidF]
Any thoughts on "subscript out of range"? It's annoying but intermittent, and in the database where I was encountering it recently, closing and reopening made it stop doing it.
[/quote]
I could not reproduce it. Is it occurring on the "copy" or the "paste" ?
 
Pierre_Admin
IQ Designer
 

DavidF

2016/07/25 18:24

In reply to by Pierre_Admin

On the "copy" (ctrl-C); the "paste" (ctrl-V) part is fine.
 
Right now, of course, none of the three databases I have open is doing it. I will watch to see if there's any pattern to when it starts.
 
DavidF.

gregory

2016/11/03 11:01

In reply to by DavidF

I get "subscript out of range" when I try to copy two adjacent "cells" in a single row. Neither column is a tree column. Version 84.
 
Mark GREGORY, Hull, England - GMT +0/+1; EST +5