Click here to Skip to main content
15,867,453 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: initializer for crystalDecisions.crystalreports.engine.crpe threw exception [modified] Pin
steve_rm16-May-07 10:38
steve_rm16-May-07 10:38 
AnswerRe: initializer for crystalDecisions.crystalreports.engine.crpe threw exception Pin
Dave Kreskowiak16-May-07 15:23
mveDave Kreskowiak16-May-07 15:23 
Questionhow to display XML file content in treeview Pin
manavya16-May-07 9:24
manavya16-May-07 9:24 
AnswerRe: how to display XML file content in treeview Pin
Dave Kreskowiak16-May-07 10:04
mveDave Kreskowiak16-May-07 10:04 
QuestionUser's Manual .... Pin
kindman_nb16-May-07 8:30
kindman_nb16-May-07 8:30 
AnswerRe: User's Manual .... [modified] Pin
Dave Kreskowiak16-May-07 9:27
mveDave Kreskowiak16-May-07 9:27 
QuestionMissmach type Pin
Vimalsoft(Pty) Ltd16-May-07 6:55
professionalVimalsoft(Pty) Ltd16-May-07 6:55 
AnswerRe: Missmach type Pin
Dave Kreskowiak16-May-07 7:56
mveDave Kreskowiak16-May-07 7:56 
Trim only works on strings and only returns strings.

Nowhere in your code have you converted a string representation of a number to an actual number.
Dim n As Long
n = Val(Trim(txtnumkey))

This tiny example, of course, doesn't do any validation or handle any errors if the string cannot be converted to a number! This is left up to you.

I highly suggest picking up a book on VB for beginners. I doubt you can find a VB6 book anymore, so you might be forced to move to VB.NET.



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Missmach type Pin
Vimalsoft(Pty) Ltd16-May-07 19:50
professionalVimalsoft(Pty) Ltd16-May-07 19:50 
AnswerRe: Missmach type Pin
nlarson1116-May-07 7:59
nlarson1116-May-07 7:59 
GeneralRe: Missmach type Pin
Dave Kreskowiak16-May-07 8:21
mveDave Kreskowiak16-May-07 8:21 
GeneralRe: Missmach type Pin
nlarson1116-May-07 8:24
nlarson1116-May-07 8:24 
GeneralRe: Missmach type Pin
Vimalsoft(Pty) Ltd16-May-07 20:24
professionalVimalsoft(Pty) Ltd16-May-07 20:24 
GeneralRe: Missmach type Pin
Dave Kreskowiak17-May-07 2:44
mveDave Kreskowiak17-May-07 2:44 
Questioncopy object attributes Pin
Marc Soleda16-May-07 6:05
Marc Soleda16-May-07 6:05 
AnswerRe: copy object attributes [modified] Pin
Dave Kreskowiak16-May-07 6:24
mveDave Kreskowiak16-May-07 6:24 
QuestionDevelop Audio Video Conferencing System Pin
Rupesh Kumar Swami16-May-07 5:46
Rupesh Kumar Swami16-May-07 5:46 
AnswerRe: Develop Audio Video Conferencing System Pin
Dave Kreskowiak16-May-07 6:14
mveDave Kreskowiak16-May-07 6:14 
Questioncount number of rows in table Pin
peteyshrew16-May-07 3:40
peteyshrew16-May-07 3:40 
AnswerRe: count number of rows in table Pin
kubben16-May-07 4:01
kubben16-May-07 4:01 
GeneralRe: count number of rows in table Pin
peteyshrew16-May-07 4:19
peteyshrew16-May-07 4:19 
GeneralRe: count number of rows in table Pin
peteyshrew16-May-07 4:34
peteyshrew16-May-07 4:34 
GeneralRe: count number of rows in table Pin
Dave Kreskowiak16-May-07 4:39
mveDave Kreskowiak16-May-07 4:39 
Questionsyntax error Pin
peteyshrew16-May-07 3:05
peteyshrew16-May-07 3:05 
AnswerRe: syntax error Pin
andyharman16-May-07 3:53
professionalandyharman16-May-07 3: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.