Hi, This is how my code looks like.
Comment: To get a comma separated list of DSN names and replace comma with newline char.
Read from Text File C:\DSNList.txt into Variable CHECKLISTBOXSTRING (get EOF into SUCCESS)
Replace , with $NEWLINE$ in variable CHECKLISTBOXSTRING
Display Dialog: DisplayDSNList, wait for dialog to return (modal)
the above variable is set into the checklistbox control on the screen
this is how it looks in development environment

- img1.JPG (26.2 KiB) Viewed 11199 times
and this is how it looks at runtime

- img2.JPG (26.23 KiB) Viewed 11199 times
now user wants all the above items as checked by default.