Latest OxygenBasic.zip at GitHub (Click on the Wizard)
0 Members and 1 Guest are viewing this topic.
use rtl64class testgs private sys m_one,m_two string m_s1 public Method one(sys a) m_one = a End Method Method one() As sys method = m_one End Method Method two(sys a) m_two = a End Method Method two() As sys method = m_two End Method Method s1(string s) m_s1 = s End Method Method s1() As string method = m_s1 End Methodend classdim test As testgstest.one 11 'test.one(11)test.two 22 'test.two(22)test.s1 "james" 'test.s1("james")print test.one 'test.one()print test.two 'test.two()print test.s1 'test.s1()
string s="abcd"mid(s,2,"B")mid(s,3)="C"print s 'aBCd
class GetSetter int v_1 string v_2 int v1() {return v_1} sub v1(int v) {v_1=v} string v2() {return v_2} sub v2(string v) {v_2=v}end class'#recordof getSetter'TESTGetSetter gg.v1=42print g.v1 '42'