Click here to Skip to main content
15,909,656 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionappforge PDBOpen method Byfilename ERROR Pin
jbboy6-Feb-07 13:28
jbboy6-Feb-07 13:28 
AnswerRe: appforge PDBOpen method Byfilename ERROR Pin
Dave Kreskowiak7-Feb-07 5:08
mveDave Kreskowiak7-Feb-07 5:08 
GeneralRe: appforge PDBOpen method Byfilename ERROR Pin
jbboy7-Feb-07 18:45
jbboy7-Feb-07 18:45 
QuestionPrintout method of word document Pin
hemrk6-Feb-07 10:42
hemrk6-Feb-07 10:42 
QuestionADSL Network Connection Information Pin
FeRtoll6-Feb-07 10:25
FeRtoll6-Feb-07 10:25 
AnswerRe: ADSL Network Connection Information Pin
Nilesh Hapse6-Feb-07 20:26
Nilesh Hapse6-Feb-07 20:26 
GeneralRe: ADSL Network Connection Information Pin
FeRtoll6-Feb-07 21:05
FeRtoll6-Feb-07 21:05 
Questionif, then statement Pin
jds12076-Feb-07 10:07
jds12076-Feb-07 10:07 
I am trying to set a status column equal to 1 or 3 if it contains certain text in the lineitemnotes column. For example, if lineitemnotes contain the text "refunded" then the status is equal to 1 and if lineitemnotes contain the text "Added During Receiving" then status equal to 3. The problem I am having is it will set the first column with the text "refunded" and all the other stauts columns to 1 until it hit the column with the text "Added During Receiving" then all the status columns will be set to 3. However, I only want the status column to be 1 if the lineitemnites column contains the text "refunded" and status column equal to 3 if lineitemnotes column contains "Added During Receiving". Hope this is understandable. Here is my broke code to give an idea of what I am trying to do.

If Trim(row("wtnumber").ToString()) & Trim(row("wtcustomername").ToString()) = "" Then

If Trim(row("lineitemnotes").ToString.Contains("Refunded")) Then
customername = "Refunded"
status = "1"
ElseIf Trim(row("lineitemnotes").ToString.Contains("Added During Receiving")) Then
customername = "Stock"
status = "3"
End If
End If

I don't know if the contains command is correct or not. Any ideas will help.



jds1207
AnswerRe: if, then statement Pin
nlindley76-Feb-07 10:54
nlindley76-Feb-07 10:54 
GeneralRe: if, then statement Pin
jds12077-Feb-07 2:56
jds12077-Feb-07 2:56 
GeneralRe: if, then statement Pin
nlindley77-Feb-07 3:40
nlindley77-Feb-07 3:40 
GeneralRe: if, then statement Pin
jds12077-Feb-07 5:35
jds12077-Feb-07 5:35 
GeneralRe: if, then statement Pin
jds12077-Feb-07 5:58
jds12077-Feb-07 5:58 
QuestionMy.Settings won't serialize my class Pin
TwoFaced6-Feb-07 7:52
TwoFaced6-Feb-07 7:52 
AnswerRe: help help help!! Pin
Christian Graus6-Feb-07 9:35
protectorChristian Graus6-Feb-07 9:35 
QuestionRandom letters Pin
harveyhanson6-Feb-07 6:02
harveyhanson6-Feb-07 6:02 
AnswerRe: Random letters Pin
FeRtoll6-Feb-07 6:26
FeRtoll6-Feb-07 6:26 
GeneralRe: Random letters Pin
harveyhanson6-Feb-07 6:32
harveyhanson6-Feb-07 6:32 
AnswerRe: Random letters Pin
Are Jay6-Feb-07 6:47
Are Jay6-Feb-07 6:47 
GeneralRe: Random letters Pin
harveyhanson6-Feb-07 6:51
harveyhanson6-Feb-07 6:51 
AnswerRe: Random letters Pin
Guffa6-Feb-07 7:38
Guffa6-Feb-07 7:38 
GeneralRe: Random letters Pin
harveyhanson6-Feb-07 8:41
harveyhanson6-Feb-07 8:41 
GeneralRe: Random letters Pin
Christian Graus6-Feb-07 9:39
protectorChristian Graus6-Feb-07 9:39 
GeneralRe: Random letters Pin
Guffa6-Feb-07 10:33
Guffa6-Feb-07 10:33 
GeneralRe: Random letters [modified] Pin
TwoFaced6-Feb-07 12:17
TwoFaced6-Feb-07 12:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.