Thanks Ivar:

I have got it working using an array as you suggested (not sure why I 
hadn't thought of this already) using following code:

using Gtk.ShortNames
G11=@Grid()
array1=Array(Any,i)
array2=[1:1:10]
for i in 1:10
  array1[i]= @Entry()
  a=array1[i]
  b=array2[i]
  G11[1,i]=a
  setproperty!(a,:text, b )
end
win11=@Window()
push!(win11,G11)
showall(win11)

That has saved me 100s of lines of code..
Just have to extract the eventual results into my type variables now..
 
Cheers
Will

On Friday, November 14, 2014 9:20:54 PM UTC, Ivar Nesje wrote:
>
> I don't think the answer to your question is the best solution to your 
> problem, I'll first ask why you don't append the entries to an array 
> instead?
>
> The answer to this question depends on whether you want to create function 
> scope variables or global scope variables. You have to use some sort of a 
> macro, possibly in connection with the `symbol("text$num")` function.
>
> Ivar
>
> kl. 21:49:09 UTC+1 fredag 14. november 2014 skrev will ship følgende:
>>
>> Is there a way to create by concatenation or otherwise a list of 
>> sequentially numbered variables e.g.: 
>>
>> text1 = @Entry(editable = false)
>> text2 = @Entry(editable = false)
>> text3 = @Entry(editable = false)
>> text4 = @Entry(editable = false)
>>
>> i.e. want to append a number to the end of a variable stump..
>>
>> Thanks in advance
>>
>> Will
>>
>>

Reply via email to