Hi,
I have been working on incorporating my VFP components into ASP. Trying to keep ASP very lightweight! I carry data in a VFP object created using SCATTER NAME... I can use my components to look up and capture a desired record, but when I present the data in a form for editing, I seem to get only the first word of any string variables.
Here's a VBScript code snippet that captures a record:
The title field that is presented via "cMessage" is complete. However if I assign field values to a form for editing...
...I get only the first word of the title and subtitle in their respective fields. Any thoughts on why this is happening?
Thanks,
Ron
I have been working on incorporating my VFP components into ASP. Trying to keep ASP very lightweight! I carry data in a VFP object created using SCATTER NAME... I can use my components to look up and capture a desired record, but when I present the data in a form for editing, I seem to get only the first word of any string variables.
Here's a VBScript code snippet that captures a record:
Code:
' Search for a title.
orc.rsTitle.oRecord.Title_ID = "COUPLET"
lFound = ormc.GetTitle(orc)
If lFound Then
cMessage = "<h2 align='center'>" & orc.rsTitle.oRecord.Title & "</h2>"
Else
cMessage = "<h2>No Title Found</h2>"
End If
The title field that is presented via "cMessage" is complete. However if I assign field values to a form for editing...
Code:
<form method="POST" action="SaveTitle.asp">
<table border="0" width="100%">
<tr>TITLE ID: <input type="text" name="txtTITLEID" size="20" value = <% =orc.rsTitle.oRecord.TITLE_ID %>></tr>
<tr>TITLE: <input type="text" name="edtTITLE" size="86" value = <% =orc.rsTitle.oRecord.TITLE %>></tr>
<tr>SUBTITLE: <input type="text" name="edtSUBTITLE" size="81" value = <% =orc.rsTitle.oRecord.SUBTITLE %>></tr>
.
.
.
<tr>
<input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset" name="B2">
</tr>
</table>
</form>
...I get only the first word of the title and subtitle in their respective fields. Any thoughts on why this is happening?
Thanks,
Ron