I am using a very useful application known as GenericDB by Eli Robillard. I have a classic ASP application that requires that when a specific field contains user comments (not empty) pertaining to a particular field (which is numeric), that numeric field needs to be color highlighted or be marked with an asterisk when displayed on a table. The Lister in GenericDB has the following section that I think is where the modified code needs to be inserted. Any suggestion on how to make the modification would be appreciated.
Thanks.
jose
Thanks.
jose
Code:
Select Case aFields(x,2)
case 2, 3, 4, 5, 17 ' Integers, Reals
if curVal <> " " then curval = FormatNumber(curval,0,,0) 'use commas with no decimals
case 6 ' Currency
if curVal <> " " then curval = FormatCurrency(curval,0,-1) 'replaced 2 with 0 to round off numbers
case 11 ' Boolean
if curVal then
curVal = txtTrue
else
curVal = txtFalse
end if
case 7, 135 ' Date / Time: 0=General, 1=LongDate, 2=ShortDate, 3=LongTime, 4=hh:mm
if curVal <> " " then curVal = FormatDateTime(curVal, Mid(strFormatDate, x, 1))
case 130, 201, 202, 203, 204 ' String or Memo
' Image
if (UCase(Left(aFields(x,1),3)) = "IMG") then
if Session("dbMaxImageSize") = 0 then
curVal = "<img src=" & QUOTE & curVal & QUOTE & " alt=" & QUOTE & QUOTE & " />"
else
' Opens image in a new window. Use Session("dbMaxImageSize") to set "thumbnail" size
curVal = "<a href=" & QUOTE & curVal & QUOTE & " target = _new><img alt=" & QUOTE & txtClickToView & QUOTE & " src = " & QUOTE & curVal & QUOTE & " width=" & QUOTE & Session("dbMaxImageSize") & QUOTE & " />" & "</a>"
end if
IsLink = true
end if
Comment