Guest gilly Posted March 1, 2005 Report Share Posted March 1, 2005 Can someone tell me what "Compile error: Argument not optional" means, please? Quote Link to comment Share on other sites More sharing options...
Chris Posted March 1, 2005 Report Share Posted March 1, 2005 sounds like you've missed out an argument while running a compiler. For example it requires you to specify the path of the file you're compiling from or it wants you to specify and output path to compile to.. what were you trying to do? Quote Link to comment Share on other sites More sharing options...
Guest gilly Posted March 1, 2005 Report Share Posted March 1, 2005 Ok.. i'm new to this programming malarky.. so what's an argument?I have a really basic program and i'm trying to loop it so i'm "calling" all my private subs in a sub for a button click in Visual Basic. I originally had global variables and it worked perfectly. But as soon as i changed them and tried to use parameter passing it stopped working. Now i'm confused. Quote Link to comment Share on other sites More sharing options...
Wishbone G Posted March 1, 2005 Report Share Posted March 1, 2005 Its means your program is fucked and you hvae to start your programming all over again! Quote Link to comment Share on other sites More sharing options...
Guest gilly Posted March 1, 2005 Report Share Posted March 1, 2005 Anyone feel like helping me? Please? Quote Link to comment Share on other sites More sharing options...
Wishbone G Posted March 1, 2005 Report Share Posted March 1, 2005 So me rewriting half your code and sorting out your rubbish variables isnt helping? Quote Link to comment Share on other sites More sharing options...
Guest gilly Posted March 1, 2005 Report Share Posted March 1, 2005 No, if anything you made it worse. At least before it was organised even though it didn't work. Now it's a shambles and STILL doesn't work. Quote Link to comment Share on other sites More sharing options...
Cameroon Posted March 2, 2005 Report Share Posted March 2, 2005 How bout posting ur code on here? Quote Link to comment Share on other sites More sharing options...
beeker Posted March 2, 2005 Report Share Posted March 2, 2005 It sounds to me like you have an invalid if or for statement - something like that. Obviously some code that is not in the correct format. You could just have a speling mistake or something..Post your code or mail it to me and i can check it out for you if you like.Cheers,Beekercs1ar@yahoo.com Quote Link to comment Share on other sites More sharing options...
Guest gilly Posted March 2, 2005 Report Share Posted March 2, 2005 I finally got it sorted today. Thanks for the help offerings though. Quote Link to comment Share on other sites More sharing options...
beeker Posted March 2, 2005 Report Share Posted March 2, 2005 cool, what was it in the end then? Quote Link to comment Share on other sites More sharing options...
Guest gilly Posted March 2, 2005 Report Share Posted March 2, 2005 When i was calling my sub programs under a click command.. i hadn't said which variables to use. How silly of me. Quote Link to comment Share on other sites More sharing options...
beeker Posted March 2, 2005 Report Share Posted March 2, 2005 doh!i remember programming in JAva through notepad... we weren't allowed to use compilers!.. 400 lines of code and it says missing bracket.Useful! hehe dont ya love programming!ah well, best of luck for future! Quote Link to comment Share on other sites More sharing options...
Guest gilly Posted March 2, 2005 Report Share Posted March 2, 2005 Heh. Yeh compilers are SO handy. The worst thing about this program was that every time i got it working I was told something else had to change. First I had globals - then "Global variables are strictly a no no". So i got it today with locals. Then i'm told "You need a separate sub to display the answers". I don't see why I couldn't just leave my original. Fair enough globals stand a risk of being overwritten.. but since i'd written my program properly and it was running with the test data supplied, i don't see what the issue was there? Quote Link to comment Share on other sites More sharing options...
Chris Posted March 2, 2005 Report Share Posted March 2, 2005 Heh. Yeh compilers are SO handy. The worst thing about this program was that every time i got it working I was told something else had to change. First I had globals - then "Global variables are strictly a no no". So i got it today with locals. Then i'm told "You need a separate sub to display the answers". I don't see why I couldn't just leave my original. Fair enough globals stand a risk of being overwritten.. but since i'd written my program properly and it was running with the test data supplied' date=' i don't see what the issue was there?[/quote']It's just good technique. If a variable is only going to be used in one procedure and isn't going to be touched by anything else then make it local. Quote Link to comment Share on other sites More sharing options...
beeker Posted March 2, 2005 Report Share Posted March 2, 2005 just for writing programs in the big wide world, globals would be a pain in the arse when you get into thousands of lines of code. Keep it local for local people... sorry bad impression there.the more you keep thigns local the happier lecturers are... it means they dont have to look up n down a page to see what you're doing!.. lazy buggers! Quote Link to comment Share on other sites More sharing options...
Guest gilly Posted March 2, 2005 Report Share Posted March 2, 2005 *shakes fist*Ah well.. I suppose it makes sense. But still.. what a karfuffle. I wish I'd known from the beginning. I guess I'll know for future reference. Hopefully I wont need it though as i have no desire to become a programmer in the future. Quote Link to comment Share on other sites More sharing options...
PhreakyPhriday Posted March 2, 2005 Report Share Posted March 2, 2005 PhreakyPhriday informs you that: Java and Javascript are two different things Quote Link to comment Share on other sites More sharing options...
threeornothing Posted March 2, 2005 Report Share Posted March 2, 2005 I'm a programmer you know....10 PRINT "WANK"20 GOTO 10is about the extent of my knowledge though....all the code you ever need is at google.com , if its not there, then you can get it from googlegroups.com Quote Link to comment Share on other sites More sharing options...
Guest gilly Posted March 2, 2005 Report Share Posted March 2, 2005 PhreakyPhriday informs you that: Java and Javascript are two different thingsWho was that directed at? Quote Link to comment Share on other sites More sharing options...
threeornothing Posted March 2, 2005 Report Share Posted March 2, 2005 Keilan advises you Perl and PERL are different things.... :] Quote Link to comment Share on other sites More sharing options...
PhreakyPhriday Posted March 3, 2005 Report Share Posted March 3, 2005 Who was that directed at?ah yes' date=' like sorry, wrong thread completely somehow. Should have been this thread [url']http://www.aberdeen-music.com/forums/showthread.php?t=21854&page=2Jimmy JazzWell, since Malx has had some success in finding help, anyone know anything about javascript?? Suddenly it seemed to stop working on my comp and i can't do fast replies on this site and can't open my emails in hotmail. I tried fiddling about with the security settings but didn't have a clue what i was doing and it made no difference.Jimmy Jazzwas replied to byMattJimFTry going to the sun website and download the latest java platform.MattJimF Quote Link to comment Share on other sites More sharing options...
Doc Ascension Posted March 3, 2005 Report Share Posted March 3, 2005 Doc Murray advises you: to use C instead, the real man's programming language! Quote Link to comment Share on other sites More sharing options...
Wishbone G Posted March 3, 2005 Report Share Posted March 3, 2005 Wishbone G advises you: C and C++ are different things!not that you really said they werent Quote Link to comment Share on other sites More sharing options...
Doc Ascension Posted March 3, 2005 Report Share Posted March 3, 2005 (a) i never said they were the same(b) I know they are different, I know how to program in both.© Know, tell me the main differnce Quote Link to comment Share on other sites More sharing options...
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.