Click here to Skip to main content
15,889,462 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: IFilter Pin
Ian_K_29-Jun-06 12:28
Ian_K_29-Jun-06 12:28 
GeneralRe: IFilter Pin
Dave Kreskowiak29-Jun-06 13:35
mveDave Kreskowiak29-Jun-06 13:35 
QuestionHow to add combobox on datagrid Pin
ami.minami28-Jun-06 18:03
ami.minami28-Jun-06 18:03 
AnswerRe: How to add combobox on datagrid Pin
Robert Rohde28-Jun-06 23:37
Robert Rohde28-Jun-06 23:37 
Questionhow to use Substr in Visual Basic.Net Pin
Swiss Mantoro28-Jun-06 16:38
Swiss Mantoro28-Jun-06 16:38 
AnswerRe: how to use Substr in Visual Basic.Net Pin
soodmonu28-Jun-06 18:20
soodmonu28-Jun-06 18:20 
GeneralRe: how to use Substr in Visual Basic.Net Pin
Swiss Mantoro28-Jun-06 23:19
Swiss Mantoro28-Jun-06 23:19 
GeneralRe: how to use Substr in Visual Basic.Net [modified] Pin
soodmonu29-Jun-06 2:36
soodmonu29-Jun-06 2:36 
Here the problem is type casting from double to string.

let me explain you....
first of all when u declare a double variable as 03.00, the value stored in variable will be 3.0
and when u type cast it to string, it will store as "3" only.
so as you can see there is no fourth character in string, substring does not return anything.

now what you can do that is :
Dim a, c As String
a = "03.00"
c = a.Substring(3, 2)

here in the substring function index is a zero based index, so you have to pass 3 to get the fourth character.

and if you donot want to declare as string in the starting and want to proceed with double only, then find some help on double.tostring() function, i think that function can help

it should be like
Dim x As Double
Dim a, c As String
x = 3.0
a = x.ToString("0#.00")
c = a.Substring(3, 2)
Arpan Big Grin | :-D

-- modified at 8:47 Thursday 29th June, 2006
GeneralRe: how to use Substr in Visual Basic.Net Pin
Swiss Mantoro29-Jun-06 17:53
Swiss Mantoro29-Jun-06 17:53 
QuestionSamles Pin
So_G28-Jun-06 15:11
So_G28-Jun-06 15:11 
AnswerRe: Samles Pin
Jun Du28-Jun-06 15:22
Jun Du28-Jun-06 15:22 
QuestionBulk Insert Data conversion error Pin
bita_engr28-Jun-06 12:02
bita_engr28-Jun-06 12:02 
QuestionRiddle me this Pin
No-e28-Jun-06 9:33
No-e28-Jun-06 9:33 
AnswerRe: Riddle me this Pin
Dave Kreskowiak28-Jun-06 9:38
mveDave Kreskowiak28-Jun-06 9:38 
GeneralRe: Riddle me this Pin
No-e28-Jun-06 9:44
No-e28-Jun-06 9:44 
QuestionNewbie needs help VB.NET & SharePoint Pin
Jeramey28-Jun-06 7:35
Jeramey28-Jun-06 7:35 
QuestionResize Form! Pin
Assaf8228-Jun-06 7:23
Assaf8228-Jun-06 7:23 
AnswerRe: Resize Form! Pin
Dave Kreskowiak28-Jun-06 8:46
mveDave Kreskowiak28-Jun-06 8:46 
GeneralRe: Resize Form! Pin
Assaf8228-Jun-06 10:43
Assaf8228-Jun-06 10:43 
GeneralRe: Resize Form! Pin
soodmonu28-Jun-06 18:13
soodmonu28-Jun-06 18:13 
GeneralRe: Resize Form! Pin
Dave Kreskowiak29-Jun-06 4:33
mveDave Kreskowiak29-Jun-06 4:33 
QuestionCan someone explain "ByVal sender as system.object Pin
cj433128-Jun-06 6:04
cj433128-Jun-06 6:04 
AnswerRe: Can someone explain "ByVal sender as system.object Pin
Dave Kreskowiak28-Jun-06 6:39
mveDave Kreskowiak28-Jun-06 6:39 
GeneralRe: Can someone explain "ByVal sender as system.object Pin
cj433128-Jun-06 7:53
cj433128-Jun-06 7:53 
GeneralRe: Can someone explain "ByVal sender as system.object Pin
Dave Kreskowiak28-Jun-06 8:44
mveDave Kreskowiak28-Jun-06 8:44 

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.