Recent

Author Topic: Internettools (Benibela) error  (Read 152 times)

kaladinsb

  • Newbie
  • Posts: 1
Internettools (Benibela) error
« on: November 25, 2018, 08:33:05 pm »
Trying to do the following example but get the error displayed at the bottom (I can get the same error just by putting simpleinternet and xquery in my uses statemet)

Code: Pascal  [Select]
  1. uses simpleinternet, xquery;
  2. var OriginalText, SourceLang, TargetLang, TranslatedText: string;
  3. [..]
  4.   TranslatedText := xqvalue('https://translate.google.com')
  5.                     .retrieve()
  6.                     .map('form(//form, {"sl": $_1, "tl": $_2, "text": $_3})', [SourceLang, TargetLang, OriginalText])
  7.                     .retrieve()
  8.                     .map('css("#result_box")')
  9.                     .toString;
  10.  

Error:
Quote
xquery__parse.pas(1617,58) Error: Class or Object types "TXQTermPendingEQNameToken" and "TXQTermVariable" are not related