NetTalk Central

Author Topic: API-Manual - displayed size STRING-variable bigger than 255  (Read 4361 times)

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
API-Manual - displayed size STRING-variable bigger than 255
« on: February 05, 2021, 05:06:14 AM »
Hello again, Bruce!

SOAP-API manual again

On Nov 18 2020 I reported via mail about a tiny glitch in the listing of variables, when STRINGs are longer than 255 charactes. Any STRING longer gets displayed as STRING([255]) and in the right column  "String from 0 to 255 characters". My guess is that you obtain that number from the picture of that variable, not from its length definition itself.

I manipulate the packet-Object in the SendPacket ROUTINE with
packet.Replace('some significant text' &  &'STRING([255])', '.... STRING([10.000])', 1)

It works, its fast enough, but its a somehow dirty workaround and I just wanted to ask, if there will be a clean fix.

thx
Wolfgang

Attachment: Stringsize_API-Manual.PNG


Code: [Select]
packet.Replace('<div class="nt-service-fieldtype">&nbsp;&nbsp;&nbsp;&nbsp;(string[255])</div>', '<div class="nt-service-fieldtype">&nbsp;&nbsp;&nbsp;&nbsp;(string[10.000])</div>', 1)

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: API-Manual - displayed size STRING-variable bigger than 255
« Reply #1 on: February 07, 2021, 11:29:30 PM »
Correct, the length comes from the picture.
Are we talking about a field here, or something in a group, queue, view or table?

Cheers
Bruce

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
Re: API-Manual - displayed size STRING-variable bigger than 255
« Reply #2 on: February 09, 2021, 06:11:58 AM »
Correct, the length comes from the picture.
Are we talking about a field here, or something in a group, queue, view or table?

Cheers
Bruce

Hello Bruce,

when STRINGs are used as returnvalues, there is a fields to set a PICTURE. This helps to override the @S255 - but for STRINGs only.

All other do not offer this ability. Which lies in their nature.

Screenshot with detail (except for a VIEW) is appended.