Results (
Vietnamese) 2:
[Copy]Copied!
Gọi và nhận được cả hai chia sẻ một cú pháp thông thường.
Như tên cho thấy, gọi cuộc gọi và nhận
được. Gì gọi hoặc nhận được? Nó phụ thuộc vào
giá trị của PROC. Params là một danh sách các thông số và những gì
đến với họ. Bạn có thể truyền dữ liệu theo các
thông số và bạn cũng có thể nhận được dữ liệu từ
họ. Danh sách các tham số được phân cách bằng
dấu phẩy. Mỗi tham số được kết hợp của
ba giá trị: loại, nguồn và đích. Loại có thể là một số nguyên, một chuỗi, vv
Nguồn, đó là nguồn gốc của tham số
giá trị, có thể là một NSIS đăng ký ($ 0, $ 1, $
INSTDIR), NSIS stack, một giá trị cụ thể
(5, "test", vv) hoặc không có gì (null). Điểm đến,
đó là điểm đến của các giá trị tham số sau khi trở về cuộc gọi, có thể là một NSIS
đăng ký, stack NSIS hay gì đó
có nghĩa là không có đầu ra là bắt buộc. Hoặc là một trong những
nguồn hoặc đích cũng có thể là một dấu chấm (`. ') nếu
nó là không cần thiết. RETURN là giống như một tham số duy nhất
định nghĩa, nhưng nguồn chỉ được sử dụng khi
tạo ra các chức năng gọi lại. Thông thường nguồn
là một dấu chấm. OPTIONS là một danh sách các tùy chọn mà kiểm soát
các plug-in Hệ thống cách cư xử. Mỗi
tùy chọn có thể được tắt bằng cách đặt trước với một
dấu chấm than. Ví dụ:?! E. Params, RETURN và OPTIONS có thể được
lặp đi lặp lại nhiều lần trong một dòng Get / Call.
Khi lặp đi lặp lại, rất nhiều có thể được bỏ qua, và
chỉ có những gì bạn muốn thay đổi có thể được sử dụng.
Loại, nguồn gốc và / hoặc địa điểm có thể được
bỏ qua cho mỗi tham số , thậm chí giá trị trả về. Tùy chọn có thể được thêm vào hoặc gỡ bỏ.
Điều này cho phép bạn xác định nguyên mẫu hàm
và tiết kiệm một số cách gõ. Hai ví dụ cuối cùng hiển thị này. PROC cũng có thể được lặp đi lặp lại, nhưng phải được
bắt đầu bằng một dấu thăng (`# ') trừ khi các
dấu thăng là trước bởi một dấu hai chấm đôi
(shell32 :: # 18).
Being translated, please wait..