flowerrobot Posted July 17, 2009 Posted July 17, 2009 Have you noticed that dcl code will work some time, yet other times not. That it must be done it a particular way, or am imagining it all For example (setq anglethickness (atoi(get_tile \"anglethicknesskey\"))) will not work while (setq pen (atoi(get_tile \"anglethicknesskey\"))) this will works, if i paste in into the debu-gger minus "/" works fine. 1. Why? 2. What eles have you noticed? Ive noticed sometimes you carnt have a space between brackets,manly the first one. Regards Flower lol @ edit big man, i thought i could get away with it Quote
Lee Mac Posted July 17, 2009 Posted July 17, 2009 No I haven't noticed anything that you have suggested, there could of course be errors elsewhere in your code... Quote
flowerrobot Posted July 17, 2009 Author Posted July 17, 2009 Well thats what i thought the first few time, but when you recive a blanent thing, of simply changing the varibles name and it works , even in when there places straight after each other, the first one will work, the second will crash the program, One would simply say change the name, but its the same used threw out my code, and i dont really want to change it all for one item Quote
Lee Mac Posted July 17, 2009 Posted July 17, 2009 Perhaps with such long variable names you are making typos? Quote
flowerrobot Posted July 17, 2009 Author Posted July 17, 2009 Nah man, I wish I assume you dont use notpad++, but when you select a word, it will hilight the rest of them, and i copy the variable in most cases. which is extremly helpful And as i said, i can copy the code that dosnt work, change the varible name "anglethickness" to "pen" and it works. Thanks for the input, its really pissing me off atm aye its such a simple item, yet it wont funtion properly The thing is i carnt even animate it, because it crashes when i do, at the first menu, and ive had that inplace for months Quote
Lee Mac Posted July 17, 2009 Posted July 17, 2009 I wouldn't really be able to help without seeing the full code. Quote
flowerrobot Posted July 17, 2009 Author Posted July 17, 2009 Man you used to be cool Sorry for the broken code, its quite big Please spot the error (start_list "anglethicknesskey") (mapcar 'add_list '("6" "8")) ;(AngleThicknessProgn EaSelection)) (end_list) (set_tile "anglesize" (itoa EaSelection)) (action_tile "accept" "(setq ok 1)(setq EaSelection (atoi(get_tile \"beamtype\")))(setq anglethickness (atoi(get_tile \"anglethicknesskey\")))(setq sectionlength (get_tile \"length\"))(setq RolledId (atoi(get_tile \"rolled\")))(setq RolledAngle (atoi(get_tile \"angle\")))(setq ToeTrim (get_tile \"angle\"))(done_dialog)") : popup_list { label = "&Thickness"; key = "anglethicknesskey"; allow_accept = true; } Quote
Lee Mac Posted July 17, 2009 Posted July 17, 2009 Man you used to be cool Whats that meant to mean... Sorry for the broken code, its quite big Please spot the error (start_list "anglethicknesskey") (mapcar 'add_list '("6" "8")) ;(AngleThicknessProgn EaSelection)) (end_list) (set_tile "anglesize" (itoa EaSelection)) (action_tile "accept" "(setq ok 1)(setq EaSelection (atoi(get_tile \"beamtype\")))(setq anglethickness (atoi(get_tile \"anglethicknesskey\")))(setq sectionlength (get_tile \"length\"))(setq RolledId (atoi(get_tile \"rolled\")))(setq RolledAngle (atoi(get_tile \"angle\")))(setq ToeTrim (get_tile \"angle\"))(done_dialog)") : popup_list { label = "&Thickness"; key = "anglethicknesskey"; allow_accept = true; } Can't see anything immediate tbh.... but code doesn't lie, it is what it is. Quote
flowerrobot Posted July 17, 2009 Author Posted July 17, 2009 Can't see anything immediate tbh.... but code doesn't lie, it is what it is. lol Indeed, what you say is true, looks good but isnt, its highly frustrating. Thanks for your time. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.