Paradox Community

Items in pnews.paradox-web

Subject:Re: Here's one for you
Date:Wed, 29 Jun 2016 19:30:30 -0600
From:Liz McGuire <liz@paradoxcommunity.com>
Newsgroups:pnews.paradox-web
Attribute values should all be in quotes, either single, or double. 
I'll use double below so you can see how to put double quotes in double 
quotes. Also, I find HTML easier to read if I do one line at a time:

var
   stHTML String
endVar

stHTML =
   "<P ALIGN=\"LEFT\">" +
     "<B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name:</B>"
+
     "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" +
     "<INPUT TYPE=\"TEXT\" NAME=\"RepName\" SIZE=\"50\" VALUE=\"" +
     tcReps.RepName + "\">" +
   "</P>"

PS: &nbsp; really is not the best way to go to position things, but 
without knowing details, I couldn't give you a different way.

Liz

On 29 Jun 2016 16:52, JI wrote:
> Here's some code that is supposed to fill a field with the contents of
> the database...
>
> "<P ALIGN=LEFT><B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
> nbsp;Name:  </B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
>     <INPUT TYPE=TEXT  NAME=RepName SIZE=50 VALUE="     +
> tcReps.RepName  + " ></P>
>
> The only thing returned is the first part of any field in the table.
>
> For example, if the Repname is John Jones, I get John only.
>


Copyright © 2004 thedbcommunity.com