Questions tagged as 'array'

1
answer

TilePane: how to create individual event on the buttons

I have a hard time using TilePane, I can not create an event for each button in the array. Follow the code for you to help me. 'TilePane tilePane = new TilePane(); tilePane.setPrefColumns(3); //preferred columns tilePane.setAlignmen...
asked by 30.04.2015 / 13:30
0
answers

Changing the position of an object on a map

I need a logic that, detecting if the value of x, y has changed, change the position of an object on the map. I have a map that contains 50x50 tiles , and in these tiles there are objects that I can move using the code below: v...
asked by 03.04.2015 / 20:45
1
answer

Error in copying structured type vector

Error copying elements from a structured type vector to another vector of the same type : At the end of the code below, I use a function to "start" all the elements of tabela2 (vector that will receive the table contents), but the p...
asked by 29.10.2014 / 16:15
2
answers

Rescue 2 arrays with angularjs

angular query app.controller('recipedetails', function($rootScope, $routeParams, $http) { $http.get('app/querys/receita_item.php?id='+$routeParams.id).success(function(data) { $rootScope.recipedetails = data; console.log(data); }); });...
asked by 05.11.2014 / 04:14
1
answer

How to get an Array on all view pages

I have a view that is called by a master page , the problem is that I pass a array and the second page called, but the data does not arrive as expected. ex. //controller index class Index{ public function index(){ $data = arra...
asked by 11.07.2014 / 14:58
1
answer

Error passing a vector of objects in C ++ [closed]

I have the following function: int verticeEstimativaMinima(Node *grafo, int numVertices){} And in my function main , I have the following line of code: Node *grafo = new Node[numVertices]; That is, I'm basically trying to pass an...
asked by 02.10.2014 / 16:41
3
answers

Print result of an array in php list format

I have two arrays in php , which I compare and create a third and want to print this difference in a list. I've tried foreach , but this method prints a huge list in string . This is my code: $sql = mysqli_query(...
asked by 08.11.2018 / 14:29
2
answers

PHP - Transform object into array

I need to transform an object into an array so I can navigate through it and extract its data, even with: $array = (array) $object; But the result with a var_dump($array) is as follows, so I can not traverse it with a foreach :...
asked by 14.02.2018 / 02:38
1
answer

List BLOG and show on the same page the ARTICLE chosen

I'm working with PHP and I use friendly URL. When you click the <a class="nav-link" href="<?php echo URL::getBase(); ?>blog" tabindex="12">blog</a> link, my URL is:    link Opening the page blog.php it contains...
asked by 02.07.2018 / 19:34
1
answer

Display array data

I need to display the data for this array and I'm not sure how to place the call. I would like to get specific data like [Postage] => 140.55 [0] => SimpleXMLElement Object ( [@at...
asked by 05.10.2018 / 16:49