AltME: Rebol School
Messages
Wednesday 11th December, 2013
GiuseppeC
09:28
I have tried also:
value? get first [mycode]
09:29
Lets assume mycode is: CODE1
I whish to create a series whose name as I would write:
CODE1: copy []
09:30
Sorry
09:31
I whish to create a series whose name is CODE1. Se the code should dinamically take it from MYCODE and execute a line like: CODE1: copy []
GiuseppeC
09:50
I don't know if it is the correct way:
mycode: "ONE"
do rejoin [get first [mycode] ":" " copy []"]
type? ONE
== block!
sqlab
10:08
do reduce [to-set-word mycode copy []]
GiuseppeC
10:44
How do I check if ONE has been set to SERIES dynamically ?
10:45
type? reduce [mycode]
does not work
GiuseppeC
10:55
Here some code is making me crazy:
>> mycode: "ABC"
== "ABC"
>> do reduce [to-set-word mycode copy []]
== []
>> type? ABC
== block!
>> type? get first reduce [to-word codice-temp]
== block!
>> [type? get first reduce [to-word codice-temp]] <> block!
== true
10:56
The last one should be FALSE
10:57
Ops,
[type? get first reduce [to-word codice-temp]]
should be:
(type? get first reduce [to-word codice-temp])
10:58
Now seems to be solved.
GiuseppeC
11:28
Following your code
codice-temp: "C001"
do reduce [to-set-word codice-temp copy []]
how do I check dynamically if the series C001 has been created ?
11:31
I have tried this
> type? get first [codice-temp]
== string!
But as you see it does not work
sqlab
13:01
type? get to-word codice-temp
sqlab
13:07
better to use
13:07
do reduce [to-set-word codice-temp 'copy []] or you will
13:08
always produce two copies
13:10
sorry I just have an non ergonomic keyboard
so
do reduce [to-set-word codice-temp 'copy []]
type? get to-word codice-temp
GiuseppeC
16:27
Thanks, I am exploring dynamic table view creations with my small REBOL knowledge
Friday 13th December, 2013
sqlab
07:53
a shorter solution is
set to-word codice-temp copy []
Last message posted 188 weeks ago.