Void on mac, empty string on win
Pierre Rossel
prossel2 at myrealbox.com
Thu Jun 22 22:05:31 CDT 2006
Hello,
Using V4MD 1.11 on XP and OS X. I use the following code to add a record,
with #mediaData: "" to avoid null value in a #Text field (not nullable,
indexed by words, ASCII, segment 128).
curMediaItems = db.Query("SELECT RecID, * FROM MediaItem WHERE RecID=0",
[#LockType: #ReadWrite, #Direction: #Random])
bRet = curMediaItems.AddRecord([#MediaFolderPtr: iMediaFolderId, #name:
sName, #mediaType: 1, #mediaData: "", #comments: ""])
Later, this code is used to load the data:
curItem = db.Query("SELECT * FROM MediaItem WHERE RecID=" &
p_iMediaItemId)
p_lstData = curItem.GetRecordAsPropList()
On windows, I get a prop list with an empty string for #mediaData: ""
On mac, I get a void value for #mediaData.
Why this difference ?
Thank you.
Pierre Rossel
More information about the Valentina
mailing list