not to spam new thread, why not continue here ?
i shortened problem as much as i could :P

anyways, picture of dialog (the last one) is seen above
so it is MDX list box, i have 5 objects to select on list
while 6th object are those tabs(with names)

problem i got is this:

this alias:
Code:
 
alias _loadthmfile { 
  tokenize 32 $1- 
  .load -a themes\ $+ $1 $+ .dom 
}
 



should READ from that listbox and according to 1st field (theme name), should load file with exact name
so if it is clicked on BLACK theme, it should read from 1st field the name Black, and thru this alias load Black.dom




now this code below should (i guess) mark the line
on list box what is selected....


Code:
  
 _loadthmfile $did(themes,2,$did(themes,2).sel)
  


so i ask anyone who knows MDX, is this last code (above)
correct for last MDX version ?

coz when i click on the selected line in dialog and try to load a file, instead names (Black, White, Asure etc... whatever name is) it wont load file of same name (Black.dom, White.dom) etc... but it tries to load based on OBJECT number, so in this case
if Black is last on list, it would be object 6 and it tries to load 6.dom and not Black.dom (by name)

....
long and confusing thread no? :P
but i myself can't figure out this coz i dont know mdx well
so i ask any hint possible.

Last edited by raZOR; 06/04/06 12:24 PM.