Nếu Bạn mở workspaces từ hộp thoại File > Open thì có thể dùng lệnh GetCurrentPath$ để lấy đường dẫn của workspace, ví dụ:
include “mapbasic.def”
declare sub main
sub main
dim sMiPrfFile as string
MiPrfFile = GetCurrentPath$(PREFERENCE_PATH_WORKSPACE)
Print sMiPrfFile
end sub
Bình luận bằng Facebook Comments