2010-03-07 15:00 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/xhb/cgi.ch
  * contrib/xhb/tedit.prg
  * contrib/xhb/htjlist.prg
  * contrib/xhb/thtm.prg
  * contrib/xhb/hterrsys.prg
  * contrib/xhb/hjwindow.prg
  * contrib/xhb/htmutil.prg
    * NTRIM() -> hb_ntos()
    - Deleted NTRIM() macro.
This commit is contained in:
Viktor Szakats
2010-03-07 14:01:07 +00:00
parent 57cb7dd3cc
commit c0f41ee97b
8 changed files with 102 additions and 92 deletions

View File

@@ -17,6 +17,17 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-03-07 15:00 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/cgi.ch
* contrib/xhb/tedit.prg
* contrib/xhb/htjlist.prg
* contrib/xhb/thtm.prg
* contrib/xhb/hterrsys.prg
* contrib/xhb/hjwindow.prg
* contrib/xhb/htmutil.prg
* NTRIM() -> hb_ntos()
- Deleted NTRIM() macro.
2010-03-07 14:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/tframe.prg
! Using IS*() macros instead of NIL checks.

View File

@@ -45,7 +45,6 @@
#xTranslate DEFAULT( <p>, <v> ) => <p> := iif( <p> == NIL, <v>, <p> )
#xTranslate HTMLSpace( <n> ) => Replicate( "&nbsp;", <n> ) //"&#32;"
#xTranslate NTRIM(<n>) => hb_ntos( <n> )
#xTranslate CRLF() => Chr( 13 ) + Chr( 10 )
#define STD_IN 0

View File

@@ -268,11 +268,11 @@ METHOD SetSize( x, y, h, w ) CLASS TJsWindow
::height := h
::width := w
cStr := "screenX=" + NTRIM( ::screenX ) + ","
cStr := "screenX=" + hb_ntos( ::screenX ) + ","
cStr += "screenY=" + NTRIM( ::screenY ) + ","
cStr += "height=" + NTRIM( ::height ) + ","
cStr += "width=" + NTRIM( ::width )
cStr += "screenY=" + hb_ntos( ::screenY ) + ","
cStr += "height=" + hb_ntos( ::height ) + ","
cStr += "width=" + hb_ntos( ::width )
::features += IF( Empty( ::Features ), cStr + ",", cStr )
@@ -437,11 +437,11 @@ METHOD ImageURL( cImage, cUrl, nHeight, nBorder, ;
ENDIF
IF nBorder != NIL
cStr += " BORDER = " + NTRIM( nBorder ) + CRLF()
cStr += " BORDER = " + hb_ntos( nBorder ) + CRLF()
ENDIF
IF nHeight != NIL
cStr += " HEIGHT = " + NTRIM( nHeight ) + "% " + CRLF()
cStr += " HEIGHT = " + hb_ntos( nHeight ) + "% " + CRLF()
ENDIF
IF cOnClick != NIL

View File

@@ -110,7 +110,7 @@ STATIC FUNC xhb_cgi_DefError( e )
// display message and traceback
IF ( !Empty( e:osCode ) )
cMessage += " (DOS Error : " + NTRIM( e:osCode ) + ")"
cMessage += " (DOS Error : " + hb_ntos( e:osCode ) + ")"
ENDIF
// RESET System //
@@ -134,12 +134,12 @@ STATIC FUNC xhb_cgi_DefError( e )
cErrString += '</TD></TR><TR><TD bgcolor="cyan">' + CRLF()
cErrstring += '<FONT face ="verdana" size ="2" color="black">' + CRLF()
cErrString += "ERRORCODE...... :" + NTRIM( e:GenCode ) + "<BR>" + CRLF()
cErrString += "ERRORCODE...... :" + hb_ntos( e:GenCode ) + "<BR>" + CRLF()
cErrString += "SUBSYSTEM..... :" + e:SubSystem + "<BR>" + CRLF()
cErrString += "DESCRIPTION...:" + e:Description + "<BR>" + CRLF()
cErrString += "OPERATION......:" + e:Operation + "<BR>" + CRLF()
cErrString += "FILENAME........ :" + e:FileName + "<BR>" + CRLF()
cErrString += "TRIES............. :" + NTRIM( e:Tries ) + CRLF()
cErrString += "TRIES............. :" + hb_ntos( e:Tries ) + CRLF()
cErrString += '</TD></TR>'
cErrString += '<TR><TD bgcolor="red">'
@@ -151,7 +151,7 @@ STATIC FUNC xhb_cgi_DefError( e )
DO WHILE ( !Empty( Procname( i ) ) )
cErrString += "Called from " + RTrim( Procname( i ) ) + ;
"(" + NTRIM( Procline( i ) ) + ") <BR>" + CRLF()
"(" + hb_ntos( Procline( i ) ) + ") <BR>" + CRLF()
i ++
ENDDO
@@ -215,7 +215,7 @@ STATIC FUNC ErrorMessage( e )
// add subsystem's error code if available
IF ISNUMBER( e:subCode )
cMessage += "/" + NTRIM( e:subCode )
cMessage += "/" + hb_ntos( e:subCode )
ELSE
cMessage += "/???"
ENDIF

View File

@@ -126,8 +126,8 @@ METHOD New( name, lOpen, width, height, bgColor, ;
"<!--" + crlf() + ;
"var " + name + ";" + CRLF() + CRLF() + ;
"function listInit() {" + CRLF() + ;
"var width =" + NTRIM( width ) + ";" + ;
"var height=" + NTRIM( height ) + ";" + CRLF() + ;
"var width =" + hb_ntos( width ) + ";" + ;
"var height=" + hb_ntos( height ) + ";" + CRLF() + ;
'listSetImages( "' + cMinusImg + '", "' + cPlusImg + '" );' + CRLF() + CRLF()
::cMainNode := name
@@ -135,11 +135,11 @@ METHOD New( name, lOpen, width, height, bgColor, ;
cStr += "" //SPACE(10)
cStr += name + " = new List("
cStr += IF( lOpen, "true,", "false," )
cStr += NTRIM( width ) + ","
cStr += NTRIM( height ) + ","
cStr += hb_ntos( width ) + ","
cStr += hb_ntos( height ) + ","
cStr += '"' + BGCOLOR + '"' + ");" + CRLF()
cStr += "" //SPACE(10)
cStr += name + [.setFont("<FONT FACE='] + FONT + [' SIZE=] + NTRIM( fntSize ) + [' COLOR='] + fntColor + ['>","</FONT>");] + CRLF()
cStr += name + [.setFont("<FONT FACE='] + FONT + [' SIZE=] + hb_ntos( fntSize ) + [' COLOR='] + fntColor + ['>","</FONT>");] + CRLF()
::nItems ++
Aadd( ::aScript, cStr )
@@ -162,8 +162,8 @@ METHOD NewNode( name, lOpen, width, height, bgColor ) CLASS TJsList
cStr += "" //SPACE(10)
cStr += name + "= new List("
cStr += IF( lOpen, "true,", "false," )
cStr += NTRIM( width ) + ","
cStr += NTRIM( height ) + ","
cStr += hb_ntos( width ) + ","
cStr += hb_ntos( height ) + ","
cStr += '"' + BGCOLOR + '"' + ");" + CRLF()
::cCurrentNode := name
@@ -191,7 +191,7 @@ METHOD SetFont( name, font, fntColor, fntSize ) CLASS TJsList
cStr += name + [.setFont("<FONT ] + ;
[ FACE = '] + font + [' ] + ;
[ SIZE = ] + NTRIM( fntSize ) + ['] + ;
[ SIZE = ] + hb_ntos( fntSize ) + ['] + ;
[ COLOR = '] + fntColor + [' ] + ;
[ > ","</FONT>");]+CRLF()
@@ -254,7 +254,7 @@ METHOD Build( xPos, yPos ) CLASS TJsList
DEFAULT xPos TO 5
DEFAULT yPos TO 5
cStr += ::cMainNode + ".build(" + NTRIM( xPos ) + "," + NTRIM( yPos ) + ");" + CRLF()
cStr += ::cMainNode + ".build(" + hb_ntos( xPos ) + "," + hb_ntos( yPos ) + ");" + CRLF()
cStr += "}" + CRLF()
CsTR += "// -->" + crlf()
cStr += "</SCRIPT>" + CRLF()
@@ -263,7 +263,7 @@ METHOD Build( xPos, yPos ) CLASS TJsList
cStr += "</STYLE>" + CRLF()
cStr += '<STYLE TYPE="text/css">' + CRLF()
FOR i := 0 TO ::nItems + 6
cStr += "#" + ::cMainNode + "Item" + NTRIM( i ) + " { position:absolute; }" + CRLF()
cStr += "#" + ::cMainNode + "Item" + hb_ntos( i ) + " { position:absolute; }" + CRLF()
NEXT
cStr += "</STYLE>" + CRLF()
@@ -277,7 +277,7 @@ METHOD Build( xPos, yPos ) CLASS TJsList
//cStr += '<DIV ID="'+::cMainNode+'Item0" NAME="'+::cMainNode+"Item0"></DIV>'+CRLF()
FOR i := 0 TO ::nItems
cStr += '<DIV ID="' + ::cMainNode + 'Item' + NTRIM( i ) + '" NAME="' + ::cMainNode + 'Item' + NTRIM( i ) + '"></DIV>' + CRLF()
cStr += '<DIV ID="' + ::cMainNode + 'Item' + hb_ntos( i ) + '" NAME="' + ::cMainNode + 'Item' + hb_ntos( i ) + '"></DIV>' + CRLF()
NEXT
cStr += "</BODY></HTML>" + CRLF()

View File

@@ -187,11 +187,11 @@ oHtm:endTable()
oHtm:newTableCell( "center" )
IF lUseLinks
LINK ( cAction ) ;
TEXT( NTrim( Recno() ) ) ;
TEXT( hb_ntos( Recno() ) ) ;
OF oHtm
ELSE
PUSH BUTTON ;
NAME "'B" + NTRIM( Recno() ) + "'" ;
NAME "'B" + hb_ntos( Recno() ) + "'" ;
CAPTION "' ? '" ;
ONCLICK ( cAction ) ;
OF oHtm
@@ -259,11 +259,11 @@ oHtm:endTable()
oHtm:newTableCell( "center" )
IF lUseLinks
LINK( cAction ) ;
TEXT( NTrim( oQuery:RECNO() ) ) ;
TEXT( hb_ntos( oQuery:RECNO() ) ) ;
OF oHtm
ELSE
PUSH BUTTON ;
NAME "'B" + NTRIM( oQuery:RECNO() ) + "'" ;
NAME "'B" + hb_ntos( oQuery:RECNO() ) + "'" ;
CAPTION "' ? '" ;
ONCLICK( cAction ) ;
OF oHtm
@@ -520,11 +520,11 @@ METHOD SetSize( x, y, h, w ) Class JWindow
::height := h
::width := w
cStr := "screenX=" + NTRIM( ::screenX ) + ","
cStr := "screenX=" + hb_ntos( ::screenX ) + ","
cStr += "screenY=" + NTRIM( ::screenY ) + ","
cStr += "height=" + NTRIM( ::height ) + ","
cStr += "width=" + NTRIM( ::width )
cStr += "screenY=" + hb_ntos( ::screenY ) + ","
cStr += "height=" + hb_ntos( ::height ) + ","
cStr += "width=" + hb_ntos( ::width )
::features += IF( Empty( ::Features ), cStr + ",", cStr )
@@ -695,11 +695,11 @@ METHOD ImageURL( cImage, cUrl, nHeight, nBorder, ;
ENDIF
IF nBorder != NIL
cStr += " BORDER = " + NTRIM( nBorder ) + CRLF()
cStr += " BORDER = " + hb_ntos( nBorder ) + CRLF()
ENDIF
IF nHeight != NIL
cStr += " HEIGHT = " + NTRIM( nHeight ) + "% " + CRLF()
cStr += " HEIGHT = " + hb_ntos( nHeight ) + "% " + CRLF()
ENDIF
IF cOnClick != NIL

View File

@@ -222,11 +222,11 @@ METHOD Put() CLASS THtmlControl
IF ::Type = "TEXTAREA"
IF ::Rows != NIL
::cOutput += Space( 2 ) + ' ROWS="' + NTRIM( ::Rows ) + '"' + CRLF()
::cOutput += Space( 2 ) + ' ROWS="' + hb_ntos( ::Rows ) + '"' + CRLF()
ENDIF
IF ::Cols != NIL
::cOutput += Space( 2 ) + ' COLS="' + NTRIM( ::Cols ) + '"' + CRLF()
::cOutput += Space( 2 ) + ' COLS="' + hb_ntos( ::Cols ) + '"' + CRLF()
ENDIF
IF ::Wrap != NIL
@@ -245,11 +245,11 @@ METHOD Put() CLASS THtmlControl
ENDIF
IF ::maxChars != NIL
::cOutput += Space( 2 ) + 'MAXLENGTH="' + NTRIM( ::maxChars ) + '"' + CRLF()
::cOutput += Space( 2 ) + 'MAXLENGTH="' + hb_ntos( ::maxChars ) + '"' + CRLF()
ENDIF
IF ::Size != NIL
::cOutput += Space( 2 ) + ' SIZE="' + NTRIM( ::Size ) + '"' + CRLF()
::cOutput += Space( 2 ) + ' SIZE="' + hb_ntos( ::Size ) + '"' + CRLF()
ENDIF
IF ::Id != NIL
@@ -569,7 +569,7 @@ METHOD Put( lPutControls ) CLASS THtmlForm
" ROWS=1 " + CRLF() + ;
" CELLPADDING=3 " + CRLF() + ;
" CELLSPACING=3 " + CRLF() + ;
" WIDTH=" + NTRIM( ::width ) + "% " + CRLF() + ;
" WIDTH=" + hb_ntos( ::width ) + "% " + CRLF() + ;
' BORDERCOLORLIGHT="#000000" ' + CRLF() + ;
' BORDERCOLORDARK="#FFFFFF" ' + CRLF() + ;
" BORDER " + CRLF() + ;

View File

@@ -141,13 +141,13 @@ CLASS THtml
cName, cAlt, cTarget, nWidth, lBreak, ID, MAP, ALING, HSPACE )
METHOD TEXT( cText, nCols, lWrap ) INLINE DEFAULT( lWrap, .T. ), DEFAULT( nCols, 80 ),;
::cStr += "<PRE" + IIF( nCols != NIL, ' COLS="' + NTRIM( nCols ) + "'", "" ) + IIF( lWrap, " WRAP>", ">" ) + CRLF() + cText + CRLF() + "</PRE>" + CRLF()
::cStr += "<PRE" + IIF( nCols != NIL, ' COLS="' + hb_ntos( nCols ) + "'", "" ) + IIF( lWrap, " WRAP>", ">" ) + CRLF() + cText + CRLF() + "</PRE>" + CRLF()
METHOD MultiCol( txt, cols, gutter, width ) INLINE DEFAULT( txt, "" ),;
DEFAULT( cols, 2 ),;
DEFAULT( gutter, 5 ),;
DEFAULT( width, 100 ),;
::cStr += '<MULTICOL COLS="' + NTRIM( cols ) + '" GUTTER="' + NTRIM( gutter ) + '" WIDTH="' + NTRIM( width ) + '">' ,;
::cStr += '<MULTICOL COLS="' + hb_ntos( cols ) + '" GUTTER="' + hb_ntos( gutter ) + '" WIDTH="' + hb_ntos( width ) + '">' ,;
::cStr += txt ,;
::cStr += "</MULTICOL>"
@@ -362,7 +362,7 @@ METHOD New( cTitle, cLinkTitle, cCharSet, aScriptSRC, ;
ENDIF
IF nRefresh != NIL
::cStr += [ <META HTTP-EQUIV="Refresh" CONTENT="] + NTRIM( nRefresh ) + [; URL=] + cRefreshURL + [">]
::cStr += [ <META HTTP-EQUIV="Refresh" CONTENT="] + hb_ntos( nRefresh ) + [; URL=] + cRefreshURL + [">]
ENDIF
IF lnocache
@@ -480,19 +480,19 @@ METHOD New( cTitle, cLinkTitle, cCharSet, aScriptSRC, ;
ENDIF
IF nMarginTop != NIL
::cStr += ' topMargin=' + NTRIM( nMarginTop )
::cStr += ' topMargin=' + hb_ntos( nMarginTop )
ENDIF
IF nMarginLeft != NIL
::cStr += ' LeftMargin=' + NTRIM( nMarginLeft )
::cStr += ' LeftMargin=' + hb_ntos( nMarginLeft )
ENDIF
IF nMarginHeight != NIL
::cStr += ' MARGINHEIGHT=' + NTRIM( nMarginHeight )
::cStr += ' MARGINHEIGHT=' + hb_ntos( nMarginHeight )
ENDIF
IF nMarginWidth != NIL
::cStr += ' MARGINWIDTH=' + NTRIM( nMarginWidth )
::cStr += ' MARGINWIDTH=' + hb_ntos( nMarginWidth )
ENDIF
::cStr += '>'
@@ -736,7 +736,7 @@ METHOD SAY( str, font, size, type, color, style ) CLASS THtml
DEFAULT COLOR TO ::FontColor
IF FONT != NIL .or. Size != NIL .or. COLOR != NIL
cOut := '<FONT ' + IIF( font != NIL, 'FACE="' + font + '"', '' ) + IIF( color != NIL, ' COLOR=' + color, '' ) + IIF( nSize != NIL, ' SIZE=' + NTRIM( size ), "" )
cOut := '<FONT ' + IIF( font != NIL, 'FACE="' + font + '"', '' ) + IIF( color != NIL, ' COLOR=' + color, '' ) + IIF( nSize != NIL, ' SIZE=' + hb_ntos( size ), "" )
IF Style != NIL
cOut += '" Style="' + style + '">'
@@ -821,8 +821,8 @@ METHOD Paragraph( lStart, cAlign, cStyle ) CLASS THtml
LOCAL cStr := "<P"
DEFAULT( lStart, .T. )
DEFAULT( cAlign, "LEFT" )
DEFAULT lStart TO .T.
DEFAULT cAlign TO "LEFT"
IF lStart
cStr := "<P ALIGN='" + cAlign + "'"
@@ -855,11 +855,11 @@ METHOD HLine( nSize, nWidth, lShade, cColor ) CLASS THtml
IF lShade
::cStr += CRLF() + ;
'<HR SIZE = ' + NTRIM( nSize ) + IIF( cColor != NIL, " COLOR " + cColor, "" ) + ' WIDTH = ' + NTRIM( nWidth ) + '%>' + ;
'<HR SIZE = ' + hb_ntos( nSize ) + IIF( cColor != NIL, " COLOR " + cColor, "" ) + ' WIDTH = ' + hb_ntos( nWidth ) + '%>' + ;
CRLF()
ELSE
::cStr += CRLF() + ;
'<HR NOSHADE SIZE = ' + NTRIM( nSize ) + IIF( cColor != NIL, " COLOR " + cColor, "" ) + ' WIDTH = ' + NTRIM( nWidth ) + '%>' + ;
'<HR NOSHADE SIZE = ' + hb_ntos( nSize ) + IIF( cColor != NIL, " COLOR " + cColor, "" ) + ' WIDTH = ' + hb_ntos( nWidth ) + '%>' + ;
CRLF()
ENDIF
@@ -881,7 +881,7 @@ METHOD PutHeading( cText, nWeight, lCentered ) CLASS THtml
::cStr += "<CENTER>"
ENDIF
::cStr += "<H" + NTRIM( nWeight ) + ">" + cText + "</H" + NTRIM( nWeight ) + ">" + CRLF()
::cStr += "<H" + hb_ntos( nWeight ) + ">" + cText + "</H" + hb_ntos( nWeight ) + ">" + CRLF()
IF lCentered
::cStr += "</CENTER>"
@@ -946,7 +946,7 @@ METHOD PutTextUrl( cText, cUrl, cOnClick, cOnMsOver, cOnMsout, cTarget, font, cl
ENDIF
IF size != NIL
cStr += ' size=' + NTRIM( size )
cStr += ' size=' + hb_ntos( size )
ENDIF
IF style != NIL
@@ -1000,17 +1000,17 @@ METHOD PutImageUrl( cImage, nBorder, nHeight, cUrl, ;
ENDIF
IF nBorder != NIL
cStr += " border = " + IIF( Valtype( nBorder ) == "N", NTRIM( nBorder ), nBorder ) + CRLF()
cStr += " border = " + IIF( Valtype( nBorder ) == "N", hb_ntos( nBorder ), nBorder ) + CRLF()
ENDIF
IF nHeight != NIL .and. Valtype( nHeight ) == "N"
cStr += " height = " + NTRIM( nHeight ) + " " + CRLF()
cStr += " height = " + hb_ntos( nHeight ) + " " + CRLF()
ELSEIF nHeight != NIL .and. Valtype( nHeight ) == "C"
cStr += " height = " + nHeight + " " + CRLF()
ENDIF
IF nWidth != NIL .and. Valtype( nWidth ) == "N"
cStr += " width = " + NTRIM( nWidth ) + " " + CRLF()
cStr += " width = " + hb_ntos( nWidth ) + " " + CRLF()
ELSEIF nWidth != NIL .and. Valtype( nWidth ) == "C"
cStr += " width = " + nWidth + " " + CRLF()
ENDIF
@@ -1040,7 +1040,7 @@ METHOD PutImageUrl( cImage, nBorder, nHeight, cUrl, ;
ENDIF
IF hSpace != NIL
cStr += " hSpace= " + NTRIM( hSpace ) + " "
cStr += " hSpace= " + hb_ntos( hSpace ) + " "
ENDIF
::cStr += ;
@@ -1062,17 +1062,17 @@ METHOD PutTextImageUrl( cImage, nBorder, nHeight, cUrl, ;
ENDIF
IF nBorder != NIL
cStr += " border = " + NTRIM( nBorder )
cStr += " border = " + hb_ntos( nBorder )
ENDIF
IF nHeight != NIL .and. Valtype( nHeight ) == "N"
cStr += " height = " + NTRIM( nHeight ) + " "
cStr += " height = " + hb_ntos( nHeight ) + " "
ELSEIF nHeight != NIL .and. Valtype( nHeight ) == "C"
cStr += " height = " + nHeight + " "
ENDIF
IF nWidth != NIL .and. Valtype( nWidth ) == "N"
cStr += " width = " + NTRIM( nWidth ) + " "
cStr += " width = " + hb_ntos( nWidth ) + " "
ELSEIF nWidth != NIL .and. Valtype( nWidth ) == "C"
cStr += " width = " + nWidth + " "
ENDIF
@@ -1121,19 +1121,19 @@ METHOD PutImage( cImage, nBorder, nHeight, ;
ENDIF
IF nBorder != NIL .and. Valtype( nBorder ) == "N"
cStr += " BORDER = " + NTRIM( nBorder )
cStr += " BORDER = " + hb_ntos( nBorder )
ELSEIF nBorder != NIL .and. Valtype( nBorder ) == "C"
cStr += " BORDER = " + '"' + nBorder + '"'
ENDIF
IF nHeight != NIL .and. Valtype( nHeight ) == "N"
cStr += " HEIGHT = " + NTRIM( nHeight ) + " "
cStr += " HEIGHT = " + hb_ntos( nHeight ) + " "
ELSEIF nHeight != NIL .and. Valtype( nHeight ) == "C"
cStr += " HEIGHT = " + '"' + nHeight + '"'
ENDIF
IF nWidth != NIL .and. Valtype( nWidth ) == "N"
cStr += " width = " + NTRIM( nWidth ) + " "
cStr += " width = " + hb_ntos( nWidth ) + " "
ELSEIF nWidth != NIL .and. Valtype( nWidth ) == "C"
cStr += " width = " + nWidth + " "
ENDIF
@@ -1167,7 +1167,7 @@ METHOD PutImage( cImage, nBorder, nHeight, ;
ENDIF
IF hSpace != NIL
cStr += " hSpace= " + NTRIM( hSpace ) + " "
cStr += " hSpace= " + hb_ntos( hSpace ) + " "
ENDIF
::cStr += ;
@@ -1243,30 +1243,30 @@ METHOD DefineTable( nCols, nBorder, nWidth, nHeight, ColorFore, ColorBG, ;
cStr += " bgcolor=" + ColorBG + ' '
ENDIF
cStr += IIF( nBorder = NIL, "border ", "border=" + NTRIM( nBorder ) + ' ' )
cStr += IIF( nBorder = NIL, "border ", "border=" + hb_ntos( nBorder ) + ' ' )
IF ncellpadding != NIL
cStr += ' CellPadding=' + NTRIM( nCellPadding )
cStr += ' CellPadding=' + hb_ntos( nCellPadding )
ENDIF
IF nCellSpacing != NIL
cStr += ' CellSpacing=' + NTRIM( nCellSpacing )
cStr += ' CellSpacing=' + hb_ntos( nCellSpacing )
ENDIF
IF cAling != NIL
cStr += ' aling=' + '"' + cAling + '"'
ENDIF
cStr += IIF( xCols != NIL, " COLS=" + NTRIM( nCols ), "" )
cStr += IIF( xCols != NIL, " COLS=" + hb_ntos( nCols ), "" )
IF nWidth != NIL .and. Valtype( nWidth ) == "N"
cStr += " WIDTH=" + NTRIM( nWidth )
cStr += " WIDTH=" + hb_ntos( nWidth )
ELSEIF nWidth != NIL .and. Valtype( nWidth ) == "C"
cStr += " WIDTH=" + '"' + nWidth + '"'
ENDIF
IF nHeight != NIL .and. Valtype( nHeight ) == "N"
cStr += " HEIGHT=" + NTRIM( nHeight )
cStr += " HEIGHT=" + hb_ntos( nHeight )
ELSEIF nHeight != NIL .and. Valtype( nHeight ) == "C"
cStr += " HEIGHT=" + '"' + nHeight + '"'
ENDIF
@@ -1343,7 +1343,7 @@ METHOD TableHead( cHead, cColor, cAlign, ;
ENDIF
IF nHeight != NIL
cStr += " height=" + '"' + NTRIM( nHeight ) + '"'
cStr += " height=" + '"' + hb_ntos( nHeight ) + '"'
ENDIF
IF cBgPic != NIL
@@ -1356,7 +1356,7 @@ METHOD TableHead( cHead, cColor, cAlign, ;
cStr += '<font face="' + cFont + '"'
IF nSize != NIL
cStr += ' size="' + NTRIM( nSize ) + '"'
cStr += ' size="' + hb_ntos( nSize ) + '"'
ENDIF
IF cFntColor != NIL
@@ -1452,7 +1452,7 @@ METHOD NewTableCell( cAlign, cColor, ;
ENDIF
IF nHeight != NIL .and. Valtype( nHeight ) = "N"
cStr += " HEIGHT=" + NTRIM( nHeight )
cStr += " HEIGHT=" + hb_ntos( nHeight )
ELSEIF nHeight != NIL .and. Valtype( nHeight ) = "C"
cStr += " HEIGHT=" + '"' + nHeight + '"'
ENDIF
@@ -1462,13 +1462,13 @@ METHOD NewTableCell( cAlign, cColor, ;
ENDIF
IF nWidth != NIL .and. Valtype( nWidth ) = "N"
cStr += " WIDTH=" + NTRIM( nWidth )
cStr += " WIDTH=" + hb_ntos( nWidth )
ELSEIF nWidth != NIL .and. Valtype( nWidth ) = "C"
cStr += " WIDTH=" + '"' + nWidth + '"'
ENDIF
IF nColspan != NIL .and. Valtype( nColspan ) = "N"
cStr += " COLSPAN=" + NTRIM( nColspan )
cStr += " COLSPAN=" + hb_ntos( nColspan )
ELSEIF nColspan != NIL .and. Valtype( nColspan ) = "C"
cStr += " COLSPAN=" + '"' + nColspan + '"'
ENDIF
@@ -1486,7 +1486,7 @@ METHOD NewTableCell( cAlign, cColor, ;
ENDIF
IF nRowspan != NIL .and. Valtype( nRowspan ) = "N"
cStr += " ROWSPAN=" + NTRIM( nRowspan )
cStr += " ROWSPAN=" + hb_ntos( nRowspan )
ELSEIF nRowspan != NIL .and. Valtype( nRowspan ) = "C"
cStr += " ROWSPAN=" + '"' + nRowspan + '"'
ENDIF
@@ -1501,7 +1501,7 @@ METHOD NewTableCell( cAlign, cColor, ;
cStr += '<FONT '
IF nSize != NIL
cStr += 'SIZE=' + NTRIM( nSize )
cStr += 'SIZE=' + hb_ntos( nSize )
ENDIF
IF cFntColor != NIL
@@ -1823,12 +1823,12 @@ METHOD Marquee( cText, cFont, cFntColor, nFntSize, ;
::cStr += '<MARQUEE align="' + cAlign + '" '
::cStr += 'behavior="' + cBehavior + '" '
::cStr += 'width="' + NTRIM( nWidth ) + '%" '
::cStr += IIF( nHeight != NIL, 'height=' + NTRIM( nHeight ) + " ", "" )
::cStr += 'width="' + hb_ntos( nWidth ) + '%" '
::cStr += IIF( nHeight != NIL, 'height=' + hb_ntos( nHeight ) + " ", "" )
::cStr += 'bgColor="' + cBgColor + '" '
::cStr += 'scrollamount="' + NTRIM( nScrollAmt ) + '" '
::cStr += 'scrolldelay="' + NTRIM( nScrollDelay ) + '" '
::cStr += 'loop=' + IIF( Valtype( loop ) == "N", NTRIM( loop ), loop ) + ' '
::cStr += 'scrollamount="' + hb_ntos( nScrollAmt ) + '" '
::cStr += 'scrolldelay="' + hb_ntos( nScrollDelay ) + '" '
::cStr += 'loop=' + IIF( Valtype( loop ) == "N", hb_ntos( loop ), loop ) + ' '
::cStr += 'direction="' + cDirection + '" '
::cStr += IIF( onMsOver != NIL, 'onMouseOver="' + onMsOver + '" ', "" )
::cStr += IIF( onMsOut != NIL, 'onMouseOut="' + onMsOut + '" ', "" )
@@ -1874,12 +1874,12 @@ METHOD StartMarquee( cFont, cFntColor, nFntSize, ;
cStr += '<MARQUEE align="' + cAlign + '" ' + ;
'behavior="' + cBehavior + '" ' + ;
'width="' + NTRIM( nWidth ) + '%" ' + ;
IIF( nHeight != NIL, 'height=' + NTRIM( nHeight ) + " ", "" ) + ;
'width="' + hb_ntos( nWidth ) + '%" ' + ;
IIF( nHeight != NIL, 'height=' + hb_ntos( nHeight ) + " ", "" ) + ;
'bgColor="' + cBgColor + '" ' + ;
'scrollamount="' + NTRIM( nScrollAmt ) + '" ' + ;
'scrolldelay="' + NTRIM( nScrollDelay ) + '" ' + ;
'loop=' + IIF( Valtype( loop ) == "N", NTRIM( loop ), loop ) + ' ' + ;
'scrollamount="' + hb_ntos( nScrollAmt ) + '" ' + ;
'scrolldelay="' + hb_ntos( nScrollDelay ) + '" ' + ;
'loop=' + IIF( Valtype( loop ) == "N", hb_ntos( loop ), loop ) + ' ' + ;
'direction="' + cDirection + '" ' + ;
IIF( onMsOver != NIL, 'onMouseOver="' + onMsOver + '" ', "" ) + ;
IIF( onMsOut != NIL, 'onMouseOut="' + onMsOut + '" ', "" ) + ;
@@ -1942,19 +1942,19 @@ METHOD iFrame( name, src, border, marginwidth, marginheight, ;
ENDIF
IF marginwidth != NIL
cStr += Space( 5 ) + " MARGINWIDTH='" + NTRIM( marginWidth ) + "'" + CRLF()
cStr += Space( 5 ) + " MARGINWIDTH='" + hb_ntos( marginWidth ) + "'" + CRLF()
ENDIF
IF marginheight != NIL
cStr += Space( 5 ) + "MARGINHEIGHT='" + NTRIM( marginheight ) + "'" + CRLF()
cStr += Space( 5 ) + "MARGINHEIGHT='" + hb_ntos( marginheight ) + "'" + CRLF()
ENDIF
IF WIDTH != NIL
cStr += Space( 5 ) + " WIDTH='" + NTRIM( Width ) + "'" + CRLF()
cStr += Space( 5 ) + " WIDTH='" + hb_ntos( Width ) + "'" + CRLF()
ENDIF
IF HEIGHT != NIL
cStr += Space( 5 ) + " HEIGHT='" + NTRIM( height ) + "'" + CRLF()
cStr += Space( 5 ) + " HEIGHT='" + hb_ntos( height ) + "'" + CRLF()
ENDIF
IF align != NIL
@@ -2018,13 +2018,13 @@ METHOD AddObject( cType, cClassid, cAling, cCode, lDisable, cCodeBase, cName, nW
ENDIF
IF nHeight != NIL .and. Valtype( nHeight ) == "N"
cStr += " height = " + NTRIM( nHeight ) + " " + CRLF()
cStr += " height = " + hb_ntos( nHeight ) + " " + CRLF()
ELSEIF nHeight != NIL .and. Valtype( nHeight ) == "C"
cStr += " height = " + nHeight + " " + CRLF()
ENDIF
IF nWidth != NIL .and. Valtype( nWidth ) == "N"
cStr += " width = " + NTRIM( nWidth ) + " " + CRLF()
cStr += " width = " + hb_ntos( nWidth ) + " " + CRLF()
ELSEIF nWidth != NIL .and. Valtype( nWidth ) == "C"
cStr += " width = " + nWidth + " " + CRLF()
ENDIF