Computer Science Canada creating functions |
Author: | hey_joe42 [ Thu Mar 20, 2003 5:11 pm ] | ||
Post subject: | creating functions | ||
i want to make part of my program into a function with a variable the changes but works like i input it from the program and stuff here is what i have not function"ed"
where is says if prod.cater=manu, i want to be able to create a variable for prod.cater so that it can change, like i can input in for the function stuff like if for one time i run it i want it to be prod.cater it does so, and if the other i want it to be prod.sale it does so, how do i do this? |
Author: | hey_joe42 [ Thu Mar 20, 2003 5:47 pm ] |
Post subject: | |
or does anyone have any other ideas cuz maybe i functions isn't good enough, like maybe a procedure, or im out of ideas, i just want it so that i can have it change lets say call it var chngui:string, and i want it to be field that will change so i don't have to write out the gui part everytime |
Author: | Tony [ Thu Mar 20, 2003 6:48 pm ] |
Post subject: | |
i just wrote a huge tutorial on procedures and functions - http://www.compsci.ca/bbs/viewtopic.php?t=407 I hope you'll find it useful |
Author: | hey_joe42 [ Thu Mar 20, 2003 7:00 pm ] | ||
Post subject: | thanks | ||
that refreshed my brain and i've got it
thanks |