|
-
Sep 1st, 2008, 07:32 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] [2008] not working
Hi,
This time, my problem is:
in my database, i have a column with a bit data type. and it's now "True" .
but when i try this
statuss.Text = google.ToString ' i get google
If google = "True" Then ' it will pass it, to the next code
What could be the problem?
thanks
-
Sep 1st, 2008, 12:57 PM
#2
Re: [2008] not working
What is 'google' here? A variable? Datarow column? A sheep? A datarow?
-
Sep 1st, 2008, 01:00 PM
#3
Thread Starter
Frenzied Member
Re: [2008] not working
it's a string
dim google as string
column
Last edited by met0555; Sep 1st, 2008 at 01:04 PM.
-
Sep 1st, 2008, 01:03 PM
#4
Re: [2008] not working
Hmm, now your question makes no sense.
You are assigning a textbox value (or label) to a string called 'google'. Then you're mentioning that if google="True" it does "something", but I don't see any of your code to illustrate your problem nor do I see how this is related to a database.
I do apologize for not being psychic enough to read your mind.
-
Sep 1st, 2008, 01:09 PM
#5
Thread Starter
Frenzied Member
Re: [2008] not working
sorry, i found the problem ,
google = ("google").ToString()
google = reader2("google").ToString()
it was reading the string thats why i was getting google.
sorry i always find the solution after posting, even now i have faced a problem, and i 'm not able to get a solution to it
-
Sep 1st, 2008, 01:13 PM
#6
Re: [RESOLVED] [2008] not working
From what I've noticed, you do seem to find your solution because you probably do have coding potential, but you don't get good answers from these forums because (frankly) you explain your problems in vague, unintelligible ways. It has nothing to do with command over a language, it's simply a matter of the amount of assumptions you make and the amount of code you show to others.
For example, if I came up to you and said
"Hey met, my code isn't working. Look:
string x = marsDay.Apple();
Help me."
You wouldn't even know what the problem is.
Sure, I am having a go at you, but it's so that you can explain your problems well in the future and get the best advice from us... because there are 99 ways to solve a problem, but only 1 way that's the best way.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|