V4MD - going from v1 to v2

Scott Runkel srunkel at hypix.com
Tue Jan 23 12:05:50 CST 2007


> V4MD\Examples\V4MD_Specific\Field_Media\Field_Media.dir

Here's your code from Field_Media.dir, stripped of extra stuff:

tbl = gDb.table("T1")
fldBLOB = tbl.field("fld_blob")
fldBLOB.getMedia(member("out_pic"))

Does this mean I can't use a cursor, I have to get a table reference, and then a 
field reference from THAT, before I can use getMedia?

This is so frustrating and convoluted. With v1, it was just a single-line method 
from a cursor. Now it looks like I need 3 lines of code instead of 1, and I 
can't use the same cursor, which means if I'm on a particular record of a 
cursor, I then need to figure out how to get to the same record within the table 
reference.

Please tell me I'm wrong and that this will work with cursors as well. I'm about 
ready to toss v2 and just go back to v1, which worked fine most of the time.

-SR

Scott Runkel
Director of Technology
Hypix Media, Inc.
503-722-2123 




More information about the Valentina mailing list