754
社区成员
发帖
与我相关
我的任务
分享$PBExportHeader$uf_to_twoeight.srf
global type uf_to_TwoEight from function_object
end type
forward prototypes
global function string uf_to_TwoEight (long p_dec,long p_base)
end prototypes
global function string uf_to_TwoEight (long p_dec,long p_base);
String l_str,l_hex
Long l_num
l_num = p_dec
l_hex = '0123456789BCDFGHKLMNPRTVWXYZ'
If (truncate(p_dec,0)<>p_dec OR p_dec<0) Then
messagebox('提示','出错')
End If
Do While (l_num=0)
l_str = mid(l_hex,mod(l_num,p_base)+1,1)+ l_str
l_num = truncate(l_num /p_base,0)
Loop
Return l_str
end function$PBExportHeader$uf_to_TwoEight.srf
global type uf_to_TwoEight from function_object
end type
forward prototypes
global function string uf_to_TwoEight (long p_dec,long p_base)
end prototypes
global function string uf_to_TwoEight (long p_dec,long p_base);
String l_str,l_hex
Long l_num
Long ll_i,ll_length
l_num = p_dec
p_base = '0123456789BCDFGHKLMNPRTVWXYZ'
If (truncate(p_dec)<>p_dec OR p_dec<0) Then
messagebox('提示','出错')
End If
Do While (l_num=0)
l_str = mid(l_hex,mod(l_num,p_base)+1,1)+ l_str
l_num = truncate(l_num /p_base)
Loop
Return ls_str
end function