|
|
<div id="cnblogs_post_body">1.names与values的使用
<div class="cnblogs_code">var tempStrList:TStringList;begin tempStrList:=TStringList.Create; tempStrList.Add('sid'+'='+'06111'); tempStrList.Add('sname'+'='+'Eric'); ShowMessage(tempStrList[0]+#13#10+ tempStrList.Names[0]+#13#10+ tempStrList.Values['sid']+#13#10+ tempStrList.ValueFromIndex[0]); tempStrList.Free;end; |
|