|
[Sponsors] |
July 14, 2005, 15:57 |
RP_set_integer
|
#1 |
Guest
Posts: n/a
|
hi, i need set a variable in the Scheme.sch, but in Linux it doens't work:
RP_Set_Integer("newfdd",newfd); Has anyone suggestions ? |
|
July 14, 2005, 17:42 |
Re: RP_set_integer
|
#2 |
Guest
Posts: n/a
|
You swaped the UDF and Sheme environment
RP_Set_Integer.... can only be used in UDF's (set scheme vars from within the C environment. The equivalent Scheme command would be (rpsetvar 'newfdd newfd) but I don't know what newfd and newfdd are (and neither does fluent it seems) so they need to be defined first |
|
July 15, 2005, 08:14 |
Re: RP_set_integer
|
#3 |
Guest
Posts: n/a
|
I use UDF and Scheme, the problem is on Linux. On windows it works fine, but on Linux RP_set_integer doesn't work.
|
|
July 15, 2005, 09:59 |
Re: RP_set_integer
|
#4 |
Guest
Posts: n/a
|
thank you angelo, I found out the problem. I was using (set! old-flagd (rp-var-value'oldfd))
in my scheme, but on linux rp-var-value don't work, but: (set! old-flagd (%rpgetvar 'oldfd)) works fine. |
|
|
|