cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
685
Views
0
Helpful
4
Replies

Cisco 7921, VBSCript and Carriage Return

stahkaoja
Level 1
Level 1

Hi all,

Does somebody know how to implement the following thing for Cisco 7921G phone.

I loop through the SQL-recordset and display the results (over 200 lines) in the phone, line by line. In 7920 the following works great: <CiscoIPPhoneText><Text>Loop, Response.Write variable & Chr(13) MoveNext, End Loop</Text></CiscoIPPhoneText>. That one writes the current variable and changes to the next line. In 7921, however, the chr(13) is ignored, and variables are written to the phonescreen consecutively. Using CiscoIPPhoneMenu is out of the question, because it shows only 99 records...

Hope you understood my problem...

TIA,

Sami

4 Replies 4

Mike-1985
Level 1
Level 1

try "\r\n", "\n\n" or "\n"

No, doesn't work. I think those are for Javascript only?

Here is the code:

Response.Write("")

Response.Write("")

If Not rsData.EOF Then

rsData.MoveFirst

Do While Not rsData.EOF

Response.Write rsData.Fields("VARIABLE") ' carriage return should be here

rsData.MoveNext

Loop

Response.Write("")

End If

Response.Write("")

-Sami

I used \n and it works.

ok, nice to know.

However, I cannot get it to work.

How would you code this line:

Response.Write rsData.Fields("VARIABLE") & "\n"

That just writes the \n in the phonescreen every time that line of code is looped.

If the variables were cat,dog,mouse then it would write cat\ndog\nmouse\n

-Sami