#1
|
||||
|
||||
$ Variables $
Hmmm... global variables aren't pretty, so I'd tend to avoid them wherever possible. Anyway, in def.lsp you try to retrieve the value of *asdf* like this:
Code:
(setf sc1 (getf *asdf*)) Code:
(setf sc1 *asdf*) Code:
(setf sc1 osd-package::*asdf*) Claus |
#2
|
||||
|
||||
How's that for service!
It seems that both Claus and I have achieved great psychic powers and can now answer questions even before they are asked .
Something odd is going on with the time stamps. If it persists I will investigate.
__________________
John Scheffel |
#3
|
|||
|
|||
$ Variables $
Hi,
I was trying to pass some values from abc.lsp to def.lsp,(both are attachedl) but from the first program it self i can not assign value to it. First i want to run abc.lsp and i want to pass value or *asdf* to def.lsp as a initial value. can anybody help me out ? Best Regards, Gav. |
#4
|
|||
|
|||
Thanks
Thanks Calus and john.....
Calus, acctually i know (setf sc1 *asdf*) is the correct santax, i have tried so many times but my first program abc.lsp it self not assigning value to it. so i thought i may be worng i have tired to do it in diffrent way. Even after your reply i have done changes but my first program was not still not assigning vlaue. but, there was not fault of program santax. i was executing it in a worng way.... The fault was i was changing value of using slider in dialog box not by giving input in dialgo box. As i have used after-input to assgin value to global variable. so abc.lsp will not going to assign value to it unless and until i give input value to it. it was my fault i have realized after your reply. I also know global variables are not good thing but some times you have to use it... i will discuss this issue later.... John, i don't think it is due to administrative powers i think that is due to huge time diffrence between your and mine time zone. Thanks, Gav. |
#5
|
||||
|
||||
Re: Thanks
Quote:
__________________
John Scheffel |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|