Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Tcpwritestr - write bigger string

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> EASY TCP/IP
View previous topic :: View next topic  
Author Message
bibibo

Bascom Member



Joined: 30 Nov 2009
Posts: 168

slovakia.gif
PostPosted: Thu Apr 17, 2014 8:21 pm    Post subject: Tcpwritestr - write bigger string Reply with quote

Hello,

How can i write a bigger string ? I have the string with more than 255 characters and i have a problem with displaying in the web browser

Code:

   If S = "<select name={034}IN1INACT{034} size={034}1{034}>" Then
      If Input1_output2_status = 0 Then
         S = S + "<option Selected>--</option>"
      Else
         S = S + "<option>--</option>"
      End If

      If Input1_output2_status = 1 Then
         S = S + "<option Selected>ON-Vystup 1</option>"
      Else
         S = S + "<option>ON-Vystup 1</option>"
      End If

      If Input1_output2_status = 2 Then
         S = S + "<option Selected>OFF-Vystup 1</option>"
      Else
         S = S + "<option>OFF-Vystup 1</option>"
      End If

       If Input1_output2_status = 3 Then
         S = S + "<option Selected>ON-Vystup 2</option>"
      Else
         S = S + "<option>ON-Vystup 2</option>"
      End If

       If Input1_output2_status = 4 Then
         S = S + "<option Selected>OFF-Vystup 2</option>"
      Else
         S = S + "<option>OFF-Vystup 2</option>"
      End If

       If Input1_output2_status = 5 Then
         S = S + "<option Selected>ON-Vystup 3</option>"
      Else
         S = S + "<option>ON-Vystup 3</option>"
      End If

       If Input1_output2_status = 6 Then
         S = S + "<option Selected>OFF-Vystup 3</option>"
      Else
         S = S + "<option>OFF-Vystup 3</option>"
      End If

       If Input1_output2_status = 7 Then
         S = S + "<option Selected>ON-Vystup 4</option>"
      Else
         S = S + "<option>ON-Vystup 4</option>"
      End If

       If Input1_output2_status = 8 Then
         S = S + "<option Selected>OFF-Vystup 4</option>"
      Else
         S = S + "<option>OFF-Vystup 4</option>"
      End If

      If Input1_output2_status = 9 Then
         S = S + "<option Selected>Restart</option></select>"
      Else
         S = S + "<option>Restart</option></select>"
      End If
   End If

Tempw = Tcpwritestr(i , S, 255 )
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5922
Location: Holland

blank.gif
PostPosted: Thu Apr 17, 2014 9:52 pm    Post subject: Reply with quote

do you use $bigstrings ? that would be required. or specify the lib with $lib "bigstrings.lbx"
you also need a special version of the lib that will send a big string. you can contact support for that.

a simpler alternative :
- send the string in pieces.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> EASY TCP/IP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum