of course answer the second item shows the second field but how can i refer to the fields by name like
answer description of ptext?
Additionally using the second item shows only part of the second item because there is a tab or space within the data
that confuses LC. anyway to address that? I also included my raw data that live code returns below you can
see how the description should be one field but it being treated as two apparently.
Code: Select all
on doRead productId ----------------------------------------------------------
if not Connected() then exit to top
put "SELECT * FROM products WHERE ID = '"& productId&"'" into tSql
answer tSql
put revQueryDatabase( conID, tSQL) into theCursor
put the result into temp
if not (the result >0) then
answer "ERROR=" & the result
exit to top
end if
put revDatabaseColumnNames(theCursor) into theFields -- get field names from table
put the result into temp
if the result > 0 then
end if
put revdb_querylist(,,conID,tSQL) into ptext
answer ptext
answer the second item of ptext
end doRead
1011 1 3/8" Bison Belt Made from American bison leather, the #1011 belt is 1 3/8" with double edge stitching. Features U.S. made solid brass buckle, as shown. Buckle end of belt is machine-sewn with buckle permanently attached. The belt is about 1/4 inch thick in the middle, and tapers to about 3/32nds of an inch to the edge
ID: 1011
TITLE: 1 3/8" Bison Belt
DESCRIPTION: Made from American bison leather, the #1011 belt is 1 3/8" with double edge stitching. Features U.S. made solid brass buckle, as shown. Buckle end of belt is machine-sewn with buckle permanently attached. The belt is about 1/4 inch thick in the middle, and tapers to about 3/32nds of an inch to the edge
IMAGE: 1011-120.jpg