Variables XDATA

Variables XDATA

Anonymous
Not applicable
1,343 Views
1 Reply
Message 1 of 2

Variables XDATA

Anonymous
Not applicable

When creating an XDATA using Strings according to the line below everything is right.

(setq thedata '((-3 ("GD-BIM" (1000 . "a") (1000 . "b") (1000 . "c")))))

 

But when creating the same XDATA using variables instead of strings (according to the line below), the variable name is saved, not the value of it.

(setq thedata '((-3 ("GD-BIM" (1000 . tipoPeca) (1000 . idPeca) (1000 . secaoPeca)))))

How to add variables to XDATA? (variable values ​​are STRINGs)

0 Likes
Accepted solutions (1)
1,344 Views
1 Reply
Reply (1)
Message 2 of 2

ВeekeeCZ
Consultant
Consultant
Accepted solution

@Anonymous wrote:

When creating an XDATA using Strings according to the line below everything is right.

(setq thedata '((-3 ("GD-BIM" (1000 . "a") (1000 . "b") (1000 . "c")))))

 

But when creating the same XDATA using variables instead of strings (according to the line below), the variable name is saved, not the value of it.

(setq thedata (list (list -3 (list "GD-BIM" (cons 1000 tipoPeca) (cons 1000 idPeca) (cons 1000 secaoPeca)))))

How to add variables to XDATA? (variable values ​​are STRINGs)


 

All have to be evaluated. See THIS resent thread. Pretty much the same story.