1. Re: Extracting value of variable name of which is stored within another var

Rad wrote:
> 
> Bernie Ryan wrote:
> > Rad:
> >     Can't you build a sequence at run time which is a list ?
> > 
> > }}}
<eucode>
> > sequence list, name
> > atom ptr
> > 
> > list = {handle1,"name1",handle2,"name2"} 
> >   ptr = find(handlex,list)
> >   name = list[ptr+1]
> >  
> > </eucode>
{{{

> 
> Yes, but we are back to square one.
> I want to use name to get the actual handle value.
> I want to pass this name variable to a function which should derive the actual
> handle value and load that specific bitmap/icon for a control, that's what I
> was trying to do.

If you don't want to write code to do this yourself, then there is no way
to do this natively in Euphoria.  OOEU has the capability to use variables
dynamically like this using var_id/write_var/read_var.

Matt Lewis

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu