V4MD fc12: table.GetRecord(i)
info at vallemediatime.com
info at vallemediatime.com
Fri Jul 1 10:50:33 CDT 2005
Hi Ruslan,
please can you test this?
I cant't get RecID in API way and show it into my grid.
In SQL this works:
SQL
--on updateGrid n
-- sprite(n).SetRow(0, string(gHeaderList))
-- recCount = value(member("recCount").text)
-- sprite(n).rowCount = RecCount +1
-- sprite(n).colCount = gHeaderList.count
-- repeat with i = 1 to RecCount
-- fields = gCursor.getRecord(i)
-- sprite(n).SetRow(i,string(fields))
-- end repeat
--end
API (same code of SQL except row "X")
--on ProduceTableData (n, rs, table)
-- sprite(n).SetRow(0, string(gHeaderList))
-- recCount = rs.itemCount
-- sprite(n).rowCount = RecCount +1
-- sprite(n).colCount = gHeaderList.count
-- repeat with i = 1 to RecCount
X-- fields = table.GetRecord(i)
-- sprite(n).SetRow(i,string(fields))
-- end repeat
--end
A second question is about the recordSet but I send you later in new thread
Thanks Paolo
More information about the Valentina-beta
mailing list