Tstrings's AddObject method application, and mutual transformation with PCHAR

xiaoxiao2021-03-06  59

(1) Integer in Object

CMBBOX.Items.adDObject (a_value, pointer); i_ret: = cmbox.itemindex; i_perid: = integer (cmbbox.Items.Objects [i_ret]);

(2) String over Object

A_code: = 'CustId'; ComboBox1.Items.AddObject ('Customer ID', TOBJECT (A_CODE));

A_Value: = string (ComboBox1.Items.Objects [ComboBox1.ItemIndex]); (3) TSTRING and PCHAR Dismisters VAR BB: PCHAR; BB: = MEMO1.LINES.GETTEXT; // Tstrings ==> Pchar Memo2.Lines .SETTEXT (BB); // Pchar ==> Tstrings

转载请注明原文地址:https://www.9cbs.com/read-109138.html

New Post(0)