Record.StringData 屬性

Record物件的StringData屬性是可讀寫的屬性,會將字串資料傳送至記錄內的指定欄位或從中移出。 如果已儲存整數或物件,則會傳回其字串值。

這是可讀寫的屬性。

Syntax

propVal = Record.StringData
Record.StringData = propVal 

屬性值

記錄內值的必要欄位編號,以 1 為基礎。

備註

不存在欄位的傳回值是空字串。 若要將記錄字串欄位設定為 null,請使用空的變體或空字串。 嘗試將值儲存在不存在的欄位中會導致錯誤。

規格需求

需求
版本
Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。 Windows Server 2003 或 Windows XP 上的 Windows Installer
DLL
Msi.dll
IID
IID_IRecord定義為 000C1093-0000-0000-C000-000000000046