codepage-shared.p
1 |
function func1 returns char: |
---|---|
2 |
message "func 11". |
3 |
return "UTF-32". |
4 |
end. |
5 |
|
6 |
function func2 returns char: |
7 |
message "func 22". |
8 |
return "UTF-32". |
9 |
end. |
10 |
|
11 |
function func3 returns char: |
12 |
message "func 33". |
13 |
return "UTF-32". |
14 |
end. |
15 |
|
16 |
function func4 returns char: |
17 |
message "func 44". |
18 |
return "UTF-32". |
19 |
end. |
20 |
|
21 |
def shared temp-table tt1 no-undo field f1 as clob COLUMN-CODEPAGE func1(). |
22 |
def shared temp-table tt2 no-undo field f2 as clob COLUMN-CODEPAGE func2(). |
23 |
|
24 |
def temp-table tt22 like tt2. |
25 |
|
26 |
def shared temp-table tt3 no-undo field f3 as clob COLUMN-CODEPAGE func3(). |
27 |
def shared temp-table tt4 no-undo field f4 as clob COLUMN-CODEPAGE func4(). |
28 |
|
29 |
def temp-table tt33 no-undo field f33 like tt3.f3. |
30 |
|
31 |
|
32 |
def var tt44 as handle. |
33 |
def var h as handle. |
34 |
def var f as handle. |
35 |
create temp-table tt44. |
36 |
tt44:add-fields-from("tt4"). |
37 |
tt44:temp-table-prepare("tt44"). |
38 |
|
39 |
h = tt44:default-buffer-handle. |
40 |
h:buffer-create(). |
41 |
f = h:buffer-field("f4"). |
42 |
|
43 |
create tt1. |
44 |
create tt2. |
45 |
create tt3. |
46 |
create tt4. |
47 |
|
48 |
create tt22. |
49 |
create tt33. |
50 |
|
51 |
message get-codepage(tt1.f1) get-codepage(tt2.f2) get-codepage(tt3.f3) get-codepage(tt4.f4). |
52 |
message get-codepage(tt22.f2) get-codepage(tt33.f3) get-codepage(f:buffer-value). |