Click here to Skip to main content
15,918,808 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Error when installing in a XP machine Pin
fredy66629-Jun-06 0:29
fredy66629-Jun-06 0:29 
AnswerRe: Error when installing in a XP machine Pin
Mekong River29-Jun-06 0:34
Mekong River29-Jun-06 0:34 
GeneralRe: Error when installing in a XP machine Pin
Arunag1-Jul-06 0:18
Arunag1-Jul-06 0:18 
GeneralRe: Error when installing in a XP machine Pin
Mekong River1-Jul-06 5:19
Mekong River1-Jul-06 5:19 
AnswerRe: Error when installing in a XP machine Pin
Dave Kreskowiak29-Jun-06 1:45
mveDave Kreskowiak29-Jun-06 1:45 
Questionerror in assesing the data from the oracle Pin
akhilvpatel28-Jun-06 20:52
akhilvpatel28-Jun-06 20:52 
AnswerRe: error in assesing the data from the oracle Pin
Mekong River29-Jun-06 0:36
Mekong River29-Jun-06 0:36 
Questionerror in assesing data from oracle9i Pin
akhilvpatel28-Jun-06 20:49
akhilvpatel28-Jun-06 20:49 
QuestionIFilter Pin
Ian_K_28-Jun-06 18:48
Ian_K_28-Jun-06 18:48 
AnswerRe: IFilter Pin
Dave Kreskowiak29-Jun-06 4:36
mveDave Kreskowiak29-Jun-06 4:36 
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 

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.