Re: Extracting value of variable name of which is stored within another var
- Posted by Bernie Ryan <xotron at bluefrog.com> Nov 25, 2006
- 524 views
Rad wrote: > > Chris Bensler wrote: > > > > Bernie Ryan wrote: > > > > > > > > > Rad: > > > > > > What exactly are you trying to accomplish ? > > > Your explaination does not make any sense to me. > > > > > > > If I'm not mistaken, It looks like he's trying to use resource identifiers. > > > > > > Chris Bensler > > You are right, Chris. > > I have created my resource file using Bernie's win32eru.ew. So I have > hIDB_abc, > hIDB_def,.... etc as well as hIcon1, hIcon2,... etc. as graphic file handles. > > Now I want to send the names of these handles e.g. hIDB_abc to a function > which > will load it for specific control. > > My problem is how to get the values stored in these handles giving their names > in a parameter for that function....?? > > Regards, > Rad. Rad: Can't you build a sequence at run time which is a list ?
sequence list, name atom ptr list = {handle1,"name1",handle2,"name2"} ptr = find(handlex,list) name = list[ptr+1]
Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan