zblakroz
|
| Posted: 09/19/2002, 1:26 AM |
|
hello,
working on Enhancing application functionality, pg 51. I keep getting this error.., i am so new to programming its scary...LOL bear with me. ;)
The page cannot be displayed
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/Tutorial/tasks_list_events.asp, line 13, column 92
tasks.user_id_assign_to.Value = "<b><font color=""blue"">" & tasks.user_id_assign_to.Value &
-------------------------------------------------------------------------------------------^
I know that I have something incorrect, but I have tried to fix it. Perhaps one of you ran into this before and can tell me how to fix it? It's to change the logged in users name to blue if they have a task listed. I connected to the user_id_assign_to in the query, and changed the named field from emp_name to user_id_assign_to, then changed it back to emp_name when I got yet another error. LOL bear with me, I am going to be putting you all through hell here the next few weeks as I get to know this new software... ;) please help me
Thank you very much
Z
|
|
|
 |
eDuck
|
| Posted: 09/19/2002, 8:56 AM |
|
Whatever comes after the '^' caret sign is where your code is wrong. Since you did not specify the rest of the code, it's hard to figure out what is wrong.
|
|
|
 |
zblakroz
|
| Posted: 09/19/2002, 10:26 AM |
|
here is the complete code *sheepish grin* but I think i know what is wrong....teehee.... i feel stupid
<%
'BindEvents Method @1-E9252CA7
Sub BindEvents()
Set tasks.emp_name.CCSEvents("BeforeShow") = GetRef("tasks_emp_name_BeforeShow")
End Sub
'End BindEvents Method
Function tasks_emp_name_BeforeShow() 'tasks_emp_name_BeforeShow @26-B892B8E9
'Custom Code @49-73254650
' -------------------------
if tasks.Recordset.Fields("user_id_assign_to") = Session("UserID") then
tasks.user_id_assign_to.Value = "<b><font color=""blue"">" & tasks.user_id_assign_to.Value &
"</font></b>"
end if
' -------------------------
'End Custom Code
End Function 'Close tasks_emp_name_BeforeShow @26-54C34B28
%>
|
|
|
 |
eDuck
|
| Posted: 09/19/2002, 12:21 PM |
|
Have you figured it out? Again, I cannot tell if the code is actually seperated over two lines, but that would give an error.
|
|
|
 |
Werner
|
| Posted: 09/26/2002, 1:18 AM |
|
@zblakroz
Hi there, compairung your code against the online help there is nothing wrong.
But for some unknown reason I got stuck in the same place, except that I use the PHP version.
Parse error: parse error, expecting `','' or `';'' in /usr/local/httpd/htdocs/jobaqtiv/tn_daten_list_events.php on line 18
16 //----------------
17 global $tn_daten
18 if ($tn_daten->ds->f("2_erschienen") == 1)
19 $tn_daten->2_kontakt_date->SetValue("<b><font color=/"red/">"
20 .$tn_daten->GetValue(). "</font></b>");
21 //---------------
Werner
|
|
|
 |
|