REPEAT Function

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone...Please help.
I have a REPEAT function for a loop, but I got the error:
bad argument type: fixnump: "2", when I "Inspect" through Visual Lisp" it tell me is a STR.
Here is my sequence ...
When I click on the OK button, the following is executed:
(action_tile "accept" (strcat "(progn (setq Xcopies (atof (get_tile \"K_Copies\")))"
"(scr_do_run)" "(done_dialog) (setq userclick T)" ")"); strcat
) ; action
then under the sector "if userclick"....
; fix - This function converts a real to an integer.
(setq Xcopies (fix Xcopies)) ; Xcopies is a real
(setq Copies# (nth Xcopies CopyList))
Then, in the REPEAT function, I'm using the value of Copies#.
my question is: How I can make sure the "Copies#" is a Real without quotes.
I did try different ways without a good result..
thank you in advance for your help...
DC