DELPHI中如何将 字符串中的数字转化为二进制
解决方案 »
- 我的面板上的运行暂停停止没了。。怎么调出来哦
- cxgrid使用ExportGrid4ToEXCEL导出成excel格式时,如何只导出“部分”列?
- 200
- filter怎么用呀?
- 有高手研究过这个看似简单但却不易实现的多窗口置顶问题吗?奢求指教!
- myinifile.writestring(a,'a','详细内容')没有问题,但读的时候,myinifile.readstring(a,'a','xx'),如果写进的详细内容是两行,有回车键
- 菜鸟有道数组问题请教!!!!!!help,help
- 大家看看!!
- 如何改变form的网格大小,就象vb那样调节网格大小?
- 多层高手请看:李维的书上在讨论开发三层的应用服务器效率时讲到两个名词:DCOM应用服务器和Socket应用服务器,这个说法对吗?
- 新手用delphi,高手多指教
- onkeydown 问题
Bits8 : Array [1..8] of Integer = (128, 64, 32, 16, 8, 4, 2, 1);
Function Bin8ToInt ( X : String ) : Integer;
VAR
G, Total : Integer;
Begin
Total := 0;
For G := 1 to 8 Do
If ( X[G] = '1' ) then
Total := Total + Bits8[G];
Bin8ToInt := Total;
End;