-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEXAMPLES
134 lines (66 loc) · 1.89 KB
/
EXAMPLES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
Example:
========
<WSHARP>
<USE> WDBA;
<USE> CDollar.WDBA;
<IMPORT>
<PACK> MyP
{
<CLASS> Programs
{
public void main()
{
LArray root <NEW> LArray("root");//use LArray of Wsharp
<AList> ar<NEW> <AList>();
for (int i=0;i<=1000;i++)
ar.add(i);
root.add("wilmix");
root.add("jemin");
root.add("shalom");
root.add("1010");
root.add("101");
root.add("201");
root.add(ar.StringConvert());// add arraylist contents
root.add("100000000");
//print the tree's size and contents
root.printTree();// print the tree contents
<TRY>
{
string g = WDBASQL.WDBASQLS("datastores", "USEDATABASE", "dbpwds", "C:\\Programs\\WNOSQL\\WNOSQLProgramfiles\\WNOSQL-cod");
string t = WDBASQL.WDBASQLS("dbuser", "dbpwds", 1, "wilmix78", "wilmix78", 1, 5, g);
string s1 = "SelectAll from Telecom 3 to 29 , 1 to 7 ?= C By 1 1 : {0} : {0} :{0}";
MessagBox.Show("wilmix");
java.util.ArrayList ar = WDBALIB.WDBAQUERY(s1, t);
<PRINTLN>(""+ar);
}
<CATCH> (<EXE> e) { }
}
}
}
EXAMPLE:2:Program.java
=========
<WSHARP>
using WDBA;//call wdba packages
using CDollar.WDBA;// call Database packages
<PACK> HelloWorldApplication1
{
<CLASS> HelloWorld1
{
public void main()
{
try
{
string g = WDBASQL.WDBASQLS("datastores", "USEDATABASE", "dbpwds", "C:\\Programs\\WNOSQL\\WNOSQLProgramfiles\\WNOSQL-cod");
//include the path where wdba data is stored.
//write credentials code of wdba
string t = WDBASQL.WDBASQLS("dbuser", "dbpwds", 1, "wilmix78", "wilmix78", 1, 5, g);
// write username ,pwd
string s1 = "SelectAll from Telecom 3 to 29 , 1 to 7 ?= C By 1 1 : {0} : {0} :{0}";
// write wdba query
java.util.ArrayList ar = WDBALIB.WDBAQUERY(s1, t);//use Wsharp java.util package
<PRINTLN>(""+ar);
}
catch (System.Exception e) { }
}
}
}