Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

New KB article about Multi-Selecting Rows in Edit Tables (OpenInsight Specific)

At 15 FEB 2000 03:31:52AM Oystein Reigem wrote:

There's a new KB article Multi-Selecting Rows in Edit Tables in Order to Place the Selected Rows into Another Edit Table. To make a multi-select edit table the article says to put a handler on the GOTFOCUS event of the edit table. Isn't window CREATE the proper event for this handler?

Also the handler destroys and re-creates the edit table. I thought that was necessary only for edit tables ]64K with version 3.7.x. I think the article should mention that. But at least tell me if I'm correct.

And with all the discussion recently on runtime licenses I'd expect the article to carry some statement about destroying and re-creating controls. :-)

- Oystein -


At 15 FEB 2000 03:51AM JC wrote:

Oystien,

I have used the following for a while now:

  • ctrl=edit table
  • Set Edit Table style to allow multi-row select
cs=ctrl
ps=STYLE'
old_style=get_property(cs, ps)
et_style=field(old_style, @rm, 1)
numb=iconv(et_style-4,4,'MX')
numb += 512
numb=oconv(numb,'MX')
et_style-4,4=fmt('0000':numb,'R#4')
cs=ctrl
ps=STYLE'
ss=et_style
ans=set_property(cs, ps, ss) 

I agree he CREATE event is the best place. You would still need the "Add" code to move the selections to the second edit table.

John

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/0898f309ef3e1cd985256886002edceb.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1