Classes
Author |
Message |
BoyGenius
|
Posted: Wed May 14, 2003 6:47 pm Post subject: Classes |
|
|
k i read the tutorail and i dont understand the export and the import. how do u know which ones you need to write the code for ?? the import and the export. Cuz i am doing a program on calendar and i am a little confused. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Catalyst
|
Posted: Wed May 14, 2003 6:58 pm Post subject: (No subject) |
|
|
import - Tells the class what varibles,procs,etc. that need to be brought in from outside the class
export - whatever is on the export list can be accessed from outside the class (using the ->) otherwise it can only be accessed inside the class |
|
|
|
|
|
BoyGenius
|
Posted: Wed May 14, 2003 8:27 pm Post subject: (No subject) |
|
|
Can the import and the export list have more than 1 item in them ? |
|
|
|
|
|
BoyGenius
|
Posted: Wed May 14, 2003 8:29 pm Post subject: (No subject) |
|
|
like this ?
code: |
class data
export day,month,year,Get,Set,Put,calendar
import Month_Name,Leap_Year,Max_Day,Zeller
end data
|
|
|
|
|
|
|
Catalyst
|
Posted: Wed May 14, 2003 9:40 pm Post subject: (No subject) |
|
|
yup just like that, tho import goes above export
you can export nearly everything (except dynamic arrays)
if u want to export everything just
code: |
class what
export all
end what
|
|
|
|
|
|
|
|
|