Questions tagged [is-empty]

Questions about items that can be described as empty or having no data value

776 questions
-2
votes
1 answer

How to check if an array is filled with zeros in C++

So, I have an array in C++ of length n and I want to know if it contains at least one positive number. I know for sure that the array contains only non-negative numbers. I know how to do that but I wonder if there's a more efficient or prettier…
-2
votes
1 answer

vba code suddenly encounters problems with enumeration

This visual basic code related to outlook used to work without problems Sub cmdExample() Dim myOlApp As Object Set myOlApp = CreateObject("Outlook.Application") Set myoSession = myOlApp.Session Set myoCalendar =…
gschaaf
  • 3
  • 2
-2
votes
1 answer

How to fix automatic changed DOM-Position of Form-Closing-Tag while onload by jQuery.get()

I started a coding project with datatransfer between Webbrowser and SQL-Database. There´s a Mainpage that loads a second HTML-Document into a
by jQuery.get(). The second document contains
-2
votes
1 answer

What is the difference between null and isEmpty() in queue

What the difference between using q != null and !q.isEmpty()? when I used q!=null in the following code, it's not going to be compiled. But !q.isEmpty() works pretty well. java Queue q=new LinkedList<>(); q.add(new TreeNode[]{t1,…
-2
votes
1 answer

Google app Script get range copy data if cell not blank

I have a script someone else created, I am new to app script and still learning, I am copying a range of data from sheet1 that they fill in daily to sheet2, I would like this to not copy the row if Column F is blank. Here is what I am using…
-2
votes
1 answer

Hide multiple rows based on multiple ranges cell value VBA

I have a sheet (Sheet3) within a workbook that I would like to write VBA to hide multiple rows based on cell value in multiple ranges. The VBA would have to run through two different steps; the first would be if the first cell within the specified…
Hery0502
  • 91
  • 1
  • 13
-2
votes
2 answers

Check if all of the values of a multidimensionnal array is null

I've a multidimensionnal array like that, and I wan't to check if all of the "open_at" and "closed_at" values are NULL. array:7 [▼ 0 => array:2 [▼ 0 => array:2 [▼ "open_at" => null "closed_at" => "11:03" ] 1 => array:2 [▼ "open_at" =>…
Newo1t
  • 1
  • 1
-2
votes
1 answer

Python PostgreSQL CSV Import empty field sorter

i am trying to import a quite big csv file (21 columns / 125k rows) into Postgres. Since you cannot insert an empty string into Postgres like with Sqlite. I am trying to sort through each row with a csvDictReader and filter the data in order to…
Locust
  • 67
  • 1
  • 6
-2
votes
2 answers

why i get an default output 0 after the invalid inputs?

My requirement is to set two values in an html form and pass those values into an PHP file where i will check wither these value is set or not set.If any one or two of the field is blank than it will show invalid input. And if the values are set…
-2
votes
1 answer

Executing scan -t table returns no result despite tablet server showing 110K entries

I am facing an issue when trying to scan an accumulo table. Short environment abstract: Localhost single cluster setup of all involved components: accumulo 1.8.0 zookeeper 3.4 hadoop 2.7.3 OS: Ubuntu 16.05, 64…
Chris
  • 3
  • 2
-2
votes
5 answers

If my post is empty, how do i block the update with my database?

I have this problem with mysql on phpmyadmin databases that I want to update my database, for instance change the username, but with the current code I have, if I leave something empty, it updates the database with empty value, I wanted to change…
-2
votes
3 answers

Checking whether variable is empty in JavaScript?

There is two kind of JavaScript code for investigating empty/full variable: if(variable == ''){} if(!variable){} I tested both of them, and I achieved identical result. Now I want to know, (first) are they equivalent? And (second) which one is…
Shafizadeh
  • 9,960
  • 12
  • 52
  • 89
-2
votes
1 answer

java.util.HashMap.KeySet is not public in java.util.HashMap; cannot be accessed from outside package

Working with maps in a REPL to test out functionality and got this message when trying to run the .isEmpty() function on a map. Here's what was entered in the console after creating a map: acronyms.isEmpty(); Any idea what might cause this? I am…
Eric Conklin
  • 539
  • 4
  • 17
-2
votes
3 answers

Shortest way to output 0 if meta does not have value / is empty

Hope that title makes sense, I have a few meta fields that I want to output 0 if they are empty. I'm currently outputting the values with this: Edit: the above code will echo out the value
-2
votes
3 answers

check for empty value in php

I am checking a value to see if it is empty using the empty() function in PHP. This validates the following as empty: "" (an empty string) 0 (0 as an integer) 0.0 (0 as a float) "0" (0 as a string) NULL FALSE array() (an empty array) $var; (a…
Undefined Variable
  • 4,196
  • 10
  • 40
  • 69
1 2 3
51
52