concatenating columns in list
Posted: Wed Apr 10, 2013 6:15 pm
Greetings
I've been mucking around for a the last two days trying to figure a way of extracting the description from a list.(see attachment) e.g Special Feature, and placing the extracted value into an array. The problem I'm having is that only the first portion of the description is extracted, i.e "Special". I've tried using the 'split', 'word' commands and just can get it right. Any guidelines would be appreciated.
What happens is that although the column that has the various description, whatever command I use, it appears that the command sees the space between the words as a column and therefore only brings the first portion of the word. I've tried different styles of code to but quotes around the description put with no avail
This is the code that generates the list
Thx
Nigel
I've been mucking around for a the last two days trying to figure a way of extracting the description from a list.(see attachment) e.g Special Feature, and placing the extracted value into an array. The problem I'm having is that only the first portion of the description is extracted, i.e "Special". I've tried using the 'split', 'word' commands and just can get it right. Any guidelines would be appreciated.
What happens is that although the column that has the various description, whatever command I use, it appears that the command sees the space between the words as a column and therefore only brings the first portion of the word. I've tried different styles of code to but quotes around the description put with no avail
This is the code that generates the list
Code: Select all
# -------------
function populatePropertyDetail pPropertySubType
local tSql
local tSqlQuery, tConnectionID, tSqlResult, tLoginFailed
put false into tLoginFailed
put empty into lgPropertyDetailList
if GetDataBaseID() is empty then
openDatabase GetPlatformDesc()
end if
put GetDataBaseID() into tConnectionID
put "SELECT pd2st.propSubTypeID, pdt.datatype, pd.* " & \
"FROM propertydetail pd " & \
"JOIN propdetail2propsubtype pd2st ON pd.ID = pd2st.propDetailID " & \
"JOIN propertydetailstype pdt ON pdt.ID = pd.propDetailsType " & \
"WHERE pd2st.propSubTypeID = " & pPropertySubType & \
" AND active = 1" into tSqlQuery
put revDataFromQuery(,,tConnectionID,tSqlQuery) into tSqlResult
if tSqlResult begins with "revdberr" then
put true into tLoginFailed
else
put tSqlResult into lgPropertyDetailList
end if
closeDatabase
return tLoginFailed
end populatePropertyDetail
Nigel