Posts by Victoralm • 229 points
9 posts
-
0
votes1
answer67
viewsQ: Display Sqlite table field values in the Console
I’m using the following code snippet to return on the Android Studio console the values of the fields of a DB: db.execSQL("CREATE TABLE IF NOT EXISTS pessoas(id INTEGER PRIMARY KEY AUTOINCREMENT,…
-
1
votes1
answer433
viewsA: How to use TCPDF in conjunction with static attributes?
It was necessary to clean the buffer with ob_clean(); right after the request for require_once 'printPdfStatic.php'; in the archive printPdf_Control.php. As suggested by the user @Daniel Waghorn…
-
1
votes1
answer433
viewsQ: How to use TCPDF in conjunction with static attributes?
I’m having trouble using static attributes to display texts with TCPDF... Trying to run the codes below, I am getting the following error: TCPDF ERROR: Some data has already been output, can’t send…
-
1
votes2
answers59
viewsQ: Determine execution according to home page
Is there any way to define a certain action according to the source page? Ex: if the previous page is exibir.php execute "x" or if the previous page is inserir.php execute "y".…
-
4
votes3
answers5089
viewsQ: How to pass a json containing data array to Php?
How would it be possible to send the following Json to Php without losing the "tabLinhas", Where do you have an array!? The original Json consists of a single line, I put this way here only to…
-
0
votes2
answers1488
viewsA: Difficulty with for loop in Ruby
Prone solution making use of arrays: #criando o array de strings minha_var = [%{Um texto}, %{Outro texto}, %{Mais outro texto}] #exibindo o array com laço for for i in(0..2) puts minha_var[i] end…
-
1
votes2
answers1488
viewsQ: Difficulty with for loop in Ruby
I’m having trouble dynamically displaying the content of variables. Ex: minha_var_1 = %{Um texto} minha_var_2 = %{Outro texto} minha_var_3 = %{Mais outro texto} But I’ve tried to show off so much…
-
3
votes1
answer218
viewsQ: C++ Dynamic Pointer Allocation
I am needing to create a protection routine in the removal function. Why it gives error when removing the last item? The function: // Remover o primeiro cliente void cadRemover(){ lista=ini; //…
-
1
votes1
answer375
viewsQ: Help: Valuing a char vector of a struct within an if
I’m trying to define the value of a char vector of a struct within an if, but without success... The struct itself: struct ficha { char nome[31], classificacao[31], telefone[21]; float altura, peso,…