
-----------------------------------
BoyGenius
Wed May 14, 2003 6:47 pm

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.

-----------------------------------
Catalyst
Wed May 14, 2003 6:58 pm


-----------------------------------
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
Wed May 14, 2003 8:27 pm


-----------------------------------
Can the import and the export list have more than 1 item in them ?

-----------------------------------
BoyGenius
Wed May 14, 2003 8:29 pm


-----------------------------------
like this ?


class data
 export day,month,year,Get,Set,Put,calendar
 import Month_Name,Leap_Year,Max_Day,Zeller
end data


-----------------------------------
Catalyst
Wed May 14, 2003 9:40 pm


-----------------------------------
yup just like that, tho import goes above export

you can export nearly everything (except dynamic arrays)

if u want to export everything just


class what
export all
end what

