Name to display as first in custom dialog popup list
Hi Forum.
Thanks for the support so far. I'm creating a simple custom dialog which will "popup", few names in dropdown.
I'm reading an external txt file which will have the name matching to the dropdown list. i'm trying to display the matched name "Stephen" in the txt file as first and then other follows one by one. Please help on this.
//name listed in popup
dialog.load({
names:
{
"King":-1,
"Queen":-2,
"Jack":-3,
"Stephen":-4,
"Robert":-5,
}
})
//it tried as below but found the variable myList3 is directly listed instead of its value ("Stephen").
dialog.load({
names:
{
myList3 :+1, // the variable myList3 will have the name "Stephen" stored in it.
"King":-1,
"Queen":-2,
"Jack":-3,
"Stephen":-4,
"Robert":-5,
}
})
Much appreciated your timely help on this. thank you.
