【问题标题】:How to concatenate 1 textbox values into url如何将 1 个文本框值连接到 url
【发布时间】:2013-11-29 09:34:45
【问题描述】:
  local custid 
  put the text of field "txtcustid" into custid

  put the URL"http://htp2.hitecpoint.in:98/api/live/"+custid  into tPreferencesFile

您好朋友,我遇到了 livecode 的问题。我想将文本框的值合并到一个 url 中。 我将文本框的值放在一个变量中。我收到一个错误“按钮“按钮”:第 32 行执行错误(运算符 +:左操作数错误),字符 15”。请帮忙。

【问题讨论】:

  • URL 不是属性。它是一个关键字,纯粹主义者可能称其为函数。请不要在“URL”前面写“the”,即使它有效。更新 LiveCode 版本时可能会遇到麻烦。

标签: livecode


【解决方案1】:

试试

local custid 
put the text of field "txtcustid" into custid

put URL("http://htp2.hitecpoint.in:98/api/live/" & custid)  into tPreferencesFile

(LiveCode 使用 '&' 代替 '+' 将值连接在一起)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-27
    相关资源
    最近更新 更多