Answer the question
In order to leave comments, you need to log in
Code does not compile to execute. How to make a cycle?
According to the documentation, the loop is done like this
var a = 1; var b = 10; while (b != 0) { b = b - 1; a = a+1; }; return a;
var posts=API.newsfeed.search({"q":"Test"});
var [email protected]_id;
var i=0;
var gIds=[];
var uIds=[];
while(i<ownerIds.length)
{
if(ownerIds[i]<0)
{
gIds.push(ownerIds[i]);
};
i=i+1;
};
return gIds;
"error_code":12,"error_msg":"Unable to compile code: ';' expected
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Accept.Clear();
var res = client.GetAsync($"https://api.vk.com/method/execute?code={queryParam}&access_token={token}&v=5.62").Result;
var answer = res.Content.ReadAsStringAsync().Result;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question