EFFECT
1. Câu lệnh sql lấy mật khẩu super
select dbo.Encrypt((select pwd from _USERS where MA_USER=1))
2. Ghép U.dbf bản effect2.0
Copy hàm ở dưới vào sdt()
Vào mode lập trình hoặc mode cus
mode cus: Vào màn hình tìm kiếm, Bấm Ctrl+Alt + S
Bấm Ctrl+F11 để hiện cửa sổ lệnh chạy
Nhập tên function và enter để chạy lệnh: ghepthutien()
// Some code
FUNCTION ghepthutien
nn=adir(ardir,p_defdir+"sepdata\u*.dbf")
use p_defdir+"\thu_tien.dbf" in thu_tien alia thutien excl
*wait wind "1"
sele thutien
dele all
pack
*wait wind "2"
sele thutien
for i=1 to nn
_st = p_defdir+"sepdata\" + ardir(i,1)
sele thutien
appen from &_st
endf
*wait wind "3"
sele thutien
pack
*wait wind "4"
Code thêm bổ sung kiểm tra lỗi khi đồng bộ bản 2.0

Last updated