delphi updateÓï·¨´íÎó£¨ÔÚÏߵȣ©
begin
ADOQuery1.close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Text:='select password from userinfo where username='''+label2.Caption +'''';
Adoquery1.open;
if edit1.Text <>Adoquery1.Fields[0].AsString then
begin
Application.MessageBox('ÔÃÜÂë²»ÕýÈ·','¾¯¸æ',MB_ICONWARNING);
exit;
end;
if ((trim(edit2.Text)='') or (trim(edit3.text)='') )then
begin
Application.MessageBox('ÐÂÃÜÂëºÍÈ·ÈÏÃÜÂë²»ÄÜΪ¿Õ','¾¯¸æ',MB_ICONWARNING);
exit
end;
if edit2.Text <>edit3.text then
begin
Application.MessageBox('Á½´ÎÃÜÂë²»Ò»ÖÂ','¾¯¸æ',MB_ICONWARNING);
exit;
end;
begin
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.text:='update userinfo set password='''+edit2.text+''' where username='''+Label2.Caption+'''';
ADOQuery1.ExecSql;
application.MessageBox('³É¹¦ÐÞ¸ÄÃÜÂë','³É¹¦',mb_iconwarning);
exit;
end;
end;
end.
ÇëÇó´óÏÀÃǰïÖú СŮ×Ó³õѧdelhi ¸÷λ×ß¹ý·¹ýµÄ´óÏÀÃÇ °ï°ïÎÒ°É£¡
Òѽâ¾ö
ADOQuery1.SQL.text:='update
Ïà¹ØÎÊ´ð£º
ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ
ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......
ÎÒÔÚ³ö¿â´°¿ÚдÁ˸ö·½·¨£ºADOQueryBill µÄbNum ×ֶεÄOnValidate·½·¨ ʵÏÖµÄÊdzö¿âÊýÁ¿²»ÄÜ´óÓÚÈë¿âµÄÊýÁ¿£¬·ñÔò¾ÍÖØÐÂÊäÈëÊýÁ¿£¬ÒÔÏÂÊÇÎҵĴúÂ룺
procedure TFrmStockOut.ADOQueryBillbNum_Validate(Sender: TFie ......
´íÎóÀàÐÍ£º³ö´íÎó³¢ÊÔ¶ÁÈ¡»òдÈëÊܱ£»¤µÄÄÚ´æ¡£Õâͨ³£Ö¸Ê¾ÆäËûÄÚ´æÒÑË𻵡£
C#Ô´Âë
[DllImport("Base64.dll")]
public static extern string Base64ToStr(string Base64);
protected void Page_Load(o ......
delphi »ñµÃÖ÷°åµÄÓ²¼þÐÅÏ¢
Win32_DiskDriveÒª»»Ò»Ï£¬Äã²éÏÂmsdn
http://hi.baidu.com/xuchuantao17/blog/item/dd6f1fdfe22ec41a48540314.html
²å¸ö±ê¼Ç
ÒýÓÃ
Win32_DiskDriveÒª»»Ò»Ï£¬Äã²éÏÂmsdn
Õ ......
IF THEN ELSEÖжà¸öÌõ¼þÔõôд£¬È磺×Ö·û´®S1£¬S2£¬S3£¬S4¾ùÒª²»Îª¿Õ¡£
ÔõôÑù°ÑËüдµ½IFÖÐÈ¥£¿
Çë¸÷λ°ï°ï棬лл£¡
if (S1<>'') and (S2<>'') and (S3<>'') and (S4<>'') then
begin ......