nageswaragunupudi wrote:do not use oBrw:aCopy
Keep a variable aCopy
For copying
- Code: Select all Expand view
aCopy := oBrw:aRow
For pasting
- Code: Select all Expand view
aCopy[ 1 ] := codsep
oBrw:aArrayData[ oBrw:nArrayAt ] := aCopy
aCopy := oBrw:aRow
aCopy[ 1 ] := codsep
oBrw:aArrayData[ oBrw:nArrayAt ] := aCopy
Then, you can copy any text any where and then press Ctrl-V in the active cell. The value is pasted and browse updated.
This applies even for pasting images in memo fields.
oCol:VarPut( newValie _
oBrw:lCanPaste := .t.