TStringList的实用功能
<div id="cnblogs_post_body">1.names与values的使用<div class="cnblogs_code">vartempStrList:TStringList;begintempStrList:=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;
页:
[1]