как задать переменную в которой будет другая переменная и текст?

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: как задать переменную в которой будет другая переменная и текст?

Re: как задать переменную в которой будет другая переменная и текст?

by garry » 30 Sep 2022, 13:18

пример :

Code: Select all

;- пример :
nazveth:="xxa"
randeth:=2
eth:=7
kidaina1:="если " . nazveth . randeth . " есть то на " . eth . " кидай"
kidaina2 = если %nazveth%%randeth% есть то на %eth% кидай
msgbox,%kidaina1%`n%kidaina2%
exitapp

как задать переменную в которой будет другая переменная и текст?

by brejtorm » 30 Sep 2022, 09:53

пытаюсь сделать так , но он выдает ошибку
сама переменная : kidaina = если %nazveth%randeth% есть то на %eth% кидай
ошибка : testkonca.ahk (17) : ==> The following variable name contains an illegal character:
" есть то на "

Top