Click here to Skip to main content
15,899,679 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to bind Dataset to Crystal report(chart and graph) Pin
lituparitosh18-Oct-05 2:27
lituparitosh18-Oct-05 2:27 
Questionhow i can run exe file on win 2003 server... Pin
rathour18-Oct-05 1:07
rathour18-Oct-05 1:07 
AnswerRe: how i can run exe file on win 2003 server... Pin
enjoycrack18-Oct-05 10:33
enjoycrack18-Oct-05 10:33 
QuestionVariable declaration inside For loop Pin
Jon Merrifield18-Oct-05 1:06
Jon Merrifield18-Oct-05 1:06 
AnswerRe: Variable declaration inside For loop Pin
Richard_Wolf18-Oct-05 6:45
Richard_Wolf18-Oct-05 6:45 
GeneralRe: Variable declaration inside For loop Pin
Jon Merrifield18-Oct-05 23:07
Jon Merrifield18-Oct-05 23:07 
QuestionGetting the length of the Double Datatype Pin
prathiba_naresh18-Oct-05 0:43
prathiba_naresh18-Oct-05 0:43 
AnswerRe: Getting the length of the Double Datatype Pin
Richard_Wolf18-Oct-05 6:36
Richard_Wolf18-Oct-05 6:36 
The simplest way is to just convert the incoming number from a numeric value to a string:

Private Function FormatResistance(ByVal Value As Double) As String
Dim psTemp As String

If Value = 0.0# Then
FormatResistance = "0"
Else
'convert double value to string
psTemp = Format(Value, "#0.000000")
If psTemp.Substring(psTemp.IndexOf(".") + 1, 3) = "000" Then
FormatResistance = psTemp.Substring(0, psTemp.IndexOf(".") + 6)
Else
FormatResistance = psTemp.Substring(0, psTemp.IndexOf(".") + 4)
End If
End If
End Function

Note that this function does not do any rounding to anything, it just truncates the number based on the examples you gave.

-- modified at 12:39 Tuesday 18th October, 2005
QuestionQuestion about text box. Pin
Isobar17-Oct-05 23:51
Isobar17-Oct-05 23:51 
QuestionHow to write a win32 console application with vb6.0? Pin
steven_wong17-Oct-05 23:17
steven_wong17-Oct-05 23:17 
AnswerRe: How to write a win32 console application with vb6.0? Pin
Richard_Wolf18-Oct-05 4:56
Richard_Wolf18-Oct-05 4:56 
Questionprint form(without going to Microsoft word) Pin
himanshu_softin17-Oct-05 22:39
himanshu_softin17-Oct-05 22:39 
AnswerRe: print form(without going to Microsoft word) Pin
maxiachun18-Oct-05 14:19
maxiachun18-Oct-05 14:19 
QuestionPreserving rich textbox format Pin
baankhi17-Oct-05 22:37
baankhi17-Oct-05 22:37 
QuestionRAW Print (Try this code;when i do,i got error) Pin
Greeky17-Oct-05 22:28
Greeky17-Oct-05 22:28 
AnswerRe: RAW Print (Try this code;when i do,i got error) Pin
Duncan Edwards Jones17-Oct-05 22:56
professionalDuncan Edwards Jones17-Oct-05 22:56 
GeneralRe: RAW Print (Try this code;when i do,i got error) Pin
Greeky17-Oct-05 23:48
Greeky17-Oct-05 23:48 
GeneralRe: RAW Print (Try this code;when i do,i got error) Pin
Duncan Edwards Jones18-Oct-05 1:26
professionalDuncan Edwards Jones18-Oct-05 1:26 
GeneralRe: RAW Print (Try this code;when i do,i got error) Pin
Greeky18-Oct-05 2:57
Greeky18-Oct-05 2:57 
GeneralRe: RAW Print (Try this code;when i do,i got error) Pin
Dave Kreskowiak18-Oct-05 7:12
mveDave Kreskowiak18-Oct-05 7:12 
GeneralRe: RAW Print (Try this code;when i do,i got error) Pin
Greeky19-Oct-05 0:51
Greeky19-Oct-05 0:51 
QuestionException in datagrid when bound to related view Pin
thebread17-Oct-05 20:36
thebread17-Oct-05 20:36 
QuestionIntellisense (I think) malfunction? Pin
Brett Peirce17-Oct-05 19:49
Brett Peirce17-Oct-05 19:49 
AnswerRe: Intellisense (I think) malfunction? Pin
medicenpringles18-Oct-05 5:24
medicenpringles18-Oct-05 5:24 
GeneralRe: Intellisense (I think) malfunction? Pin
Brett Peirce19-Oct-05 17:53
Brett Peirce19-Oct-05 17:53 

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.