Questions tagged [getstring]

150 questions
0
votes
0 answers

Error unexpected 'user'

i have a problem with a code. Parse error: syntax error, unexpected 'user' (T_STRING) in www\php\login.php on line 9 $sql1= “select * from user where (username=\”$_POST[username]\” or fullname=\”$_POST[username]\”) and…
0
votes
1 answer

C# - how to getstring in SQLite

I'll make this as simple as possible. In MySQL it is like this: string name = myReader.Getstring("student_name"); how to do this in SQLite? Still in c#. Any help will be appreciated. Thanks in advance.
Joseph Reyes
  • 69
  • 1
  • 3
  • 10
0
votes
1 answer

Beginner Question - Gets.chomp, stops my timer running, causing a crash

Hello I've been learning from the Chris Pine's, learn to program book on ruby and since finishing I have been trying to write a text adventure game, taking some ideas from the bitwise article 'adventures in ruby.' For combat, I have put in a while…
0
votes
2 answers

Invalid format String containing %

I've read others posts about this link warning but they didn't solve my problem and I still don't get what I've doing wrong. In default file strings.xml, I have: You\'re about to rate this app with %s…
0
votes
2 answers

how to use tencoding's getstring with a part of static array w/o block copying

I'm trying to apply Tencoding.UTF8.Getstring on a part of a static bytes array without copying its content to a dynamic array. If the array is dynamic, i have no problem…
miodrag
  • 99
  • 10
0
votes
1 answer

implicit declaration of function 'get_string'

I get the following error cc string.c -o string string.c:7:16: warning: implicit declaration of function 'get_string' is invalid in C99 [-Wimplicit-function-declaration] string name = get_string(); …
cl0wn cl0wn
  • 31
  • 1
  • 1
  • 2
0
votes
2 answers

Java: reading an int from Excel as string return as decimal?

I'm trying to read an integer from an Excel file like this: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String myExcel = "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ="";" + "DriverID=22;READONLY=false"; con…
evilReiko
  • 19,501
  • 24
  • 86
  • 102
0
votes
1 answer

Why does .getstring-Method produces an empty cell at the bottom of the table?

My -layout is not as expected: Why does .getstring create a single cell at the end of the table? Is this a bug? Can you fix this via getrow and join? Thanks for your tips Getstring-Example@ http://www.w3schools.com
kwnwzlnd
  • 48
  • 5
0
votes
1 answer

I'm getting net.sf.JSONObject can't be cast to java.lang.String Exception

I'm reading the JSONObject as input and i am retrieving the value of key "id" using getString() method of net.sf.json API but i'm curious to know why it is not going in the if block.. INPUT: { "id" : null } code: //reading the…
Rekha
  • 1
  • 3
0
votes
0 answers

JDBC Sql exhausted ResultSet

I have been struggling with this and I cant seem to find a fix. public static void doQ(Connection c){ try { stmt = c.createStatement(); ResultSet rs1 = stmt.executeQuery("SELECT * FROM VQ1"); ResultSet rs2 =…
Maxium
  • 1
  • 1
0
votes
3 answers

JSONException: No value for when value exists

I'm looping through a JSON Array with the intention saving the details to a database. When I get to the following bit of JSON: {"custom":"0","is_affected":"1","title":"Up Goods","direction":"","affect_type":"O","code":"0","speed":""} I receive…
jampez77
  • 5,012
  • 7
  • 32
  • 52
0
votes
1 answer

Android intent getStringExtra returns null

I'm trying to add data to a recycler view adapter but the getStringExtra is always null. I maybe making a crucial flaw in what I am doing as I'm not the most experienced programmer. What is being called first: public void addItem(View view) { …
0
votes
1 answer

How to put the text picked in a spinner into string and use in other class

What I want to do is to get the text selected in a spinner and save it into mysql database. I need some help as I don't know how to pass the string and use it in another class after getting string from the spinner. Here are the codes in…
Rex Chau
  • 17
  • 4
0
votes
1 answer

How to make combo box fill my database?

I have code like that to fill that combo box fill my database but cant .getString("NameCompany") error why ? the full code is here private void FillCombobox() { cmd = new SqlCommand("Select * From Penawaran", con); SqlDataReader dr; …
0
votes
1 answer

JSONObject.getString() is aways null

I'm writing a Projekt with Android Studio, where I need to parse a JSON-String. But if i try to parse it with JSONObjects, I get always null, this is my code: import org.json.JSONObject; public class JSONTest { public void test() { …
Dennis Rieke
  • 201
  • 4
  • 18