4.0.8 & convert utf8
This commit is contained in:
+4
-4
@@ -1,4 +1,4 @@
|
||||
//---------------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#include <vcl.h>
|
||||
#pragma hdrstop
|
||||
@@ -28,7 +28,7 @@ void __fastcall TBet03Frame::DiffEditExit(TObject *Sender)
|
||||
|
||||
int num = 0;
|
||||
if(!TryStrToInt(pE->Text, num) || num<=0 || num>=30 ){
|
||||
ShowMessage("请输入 1 - 30 之间的差值");
|
||||
ShowMessage("请输入 1 - 30 之间的差值");
|
||||
pE->Text = "5";
|
||||
pE->SetFocus();
|
||||
}
|
||||
@@ -48,7 +48,7 @@ void __fastcall TBet03Frame::BetEditExit(TObject *Sender)
|
||||
TEdit* pE = (TEdit*)Sender;
|
||||
String txt = pE->Text;
|
||||
if(txt.Length()==0 || txt.Length()>15){
|
||||
ShowMessage("请输入 1 - 15 个下注项");
|
||||
ShowMessage("请输入 1 - 15 个下注项");
|
||||
pE->Text = pE==m_edBlP ? g_BPDiffBet.bets[0] : g_BPDiffBet.bets[1];
|
||||
pE->SetFocus();
|
||||
}
|
||||
@@ -56,7 +56,7 @@ void __fastcall TBet03Frame::BetEditExit(TObject *Sender)
|
||||
for(int i=1; i<=txt.Length(); i++){
|
||||
char Key = txt[i];
|
||||
if(Key!='a' && Key!='s' && Key!='d' && Key!='x' && Key!='z'){
|
||||
ShowMessage("请按说明输入合法下注项");
|
||||
ShowMessage("请按说明输入合法下注项");
|
||||
pE->SetFocus();
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user