Now when my skill is started from the skill prompt everything works well. dbid's are stored in the list, shown in the grid and even after i closed the skill code the list contains valid dbis.
However when I registrate the skill command with axlCmdRegister (interactive) the dbid's are copied in the list, sorted and shown OK on the form. But right after this the dbid's are 'removed'.
I've putted some pp() statemens in my main procedure, just before it ends the list contains valid dbid's. When I request the list at the skill command prompt it shows me 'dbid:removed'.
So shortly, code works fine when started from skill prompt, but when started from allegro prompt the dbid's are removed right after the main procedure has finished. If I then restart the code it shows me the exact same dbid's as previously, so they are not removed from the db.
What's going on here?
While the form is open, you do not want to return control to Allegro's main UI loop. You can resolve this by adding code similar to the example code in:
In reply to fxffxf:
I've tried the blocking function from the cns-design.il and it works!
Still to figure out what axlEnterEvent('(PICK) "" nil) does exactly to understand the mechanism better.
Thanks for you help!