Click here to Skip to main content
15,559,567 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: EnumChildWindows? Pin
Christian Graus16-May-07 15:27
mveChristian Graus16-May-07 15:27 
Questioninitializer for crystalDecisions.crystalreports.engine.crpe threw exception Pin
steve_rm16-May-07 10:42
steve_rm16-May-07 10:42 
AnswerRe: initializer for crystalDecisions.crystalreports.engine.crpe threw exception Pin
Dave Kreskowiak16-May-07 10:48
mveDave Kreskowiak16-May-07 10:48 
QuestionRe: initializer for crystalDecisions.crystalreports.engine.crpe threw exception [modified] Pin
steve_rm16-May-07 11:38
steve_rm16-May-07 11:38 
AnswerRe: initializer for crystalDecisions.crystalreports.engine.crpe threw exception Pin
Dave Kreskowiak16-May-07 16:23
mveDave Kreskowiak16-May-07 16:23 
Questionhow to display XML file content in treeview Pin
manavya16-May-07 10:24
manavya16-May-07 10:24 
AnswerRe: how to display XML file content in treeview Pin
Dave Kreskowiak16-May-07 11:04
mveDave Kreskowiak16-May-07 11:04 
QuestionUser's Manual .... Pin
kindman_nb16-May-07 9:30
kindman_nb16-May-07 9:30 
AnswerRe: User's Manual .... [modified] Pin
Dave Kreskowiak16-May-07 10:27
mveDave Kreskowiak16-May-07 10:27 
QuestionMissmach type Pin
Vimalsoft(Pty) Ltd16-May-07 7:55
professionalVimalsoft(Pty) Ltd16-May-07 7:55 
AnswerRe: Missmach type Pin
Dave Kreskowiak16-May-07 8:56
mveDave Kreskowiak16-May-07 8: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 20:50
professionalVimalsoft(Pty) Ltd16-May-07 20:50 
AnswerRe: Missmach type Pin
nlarson1116-May-07 8:59
nlarson1116-May-07 8:59 
GeneralRe: Missmach type Pin
Dave Kreskowiak16-May-07 9:21
mveDave Kreskowiak16-May-07 9:21 
GeneralRe: Missmach type Pin
nlarson1116-May-07 9:24
nlarson1116-May-07 9:24 
GeneralRe: Missmach type Pin
Vimalsoft(Pty) Ltd16-May-07 21:24
professionalVimalsoft(Pty) Ltd16-May-07 21:24 
GeneralRe: Missmach type Pin
Dave Kreskowiak17-May-07 3:44
mveDave Kreskowiak17-May-07 3:44 
Questioncopy object attributes Pin
Marc Soleda16-May-07 7:05
Marc Soleda16-May-07 7:05 
AnswerRe: copy object attributes [modified] Pin
Dave Kreskowiak16-May-07 7:24
mveDave Kreskowiak16-May-07 7:24 
QuestionDevelop Audio Video Conferencing System Pin
Rupesh Kumar Swami16-May-07 6:46
Rupesh Kumar Swami16-May-07 6:46 
AnswerRe: Develop Audio Video Conferencing System Pin
Dave Kreskowiak16-May-07 7:14
mveDave Kreskowiak16-May-07 7:14 
Questioncount number of rows in table Pin
peteyshrew16-May-07 4:40
peteyshrew16-May-07 4:40 
AnswerRe: count number of rows in table Pin
kubben16-May-07 5:01
kubben16-May-07 5:01 
GeneralRe: count number of rows in table Pin
peteyshrew16-May-07 5:19
peteyshrew16-May-07 5:19 
GeneralRe: count number of rows in table Pin
peteyshrew16-May-07 5:34
peteyshrew16-May-07 5:34 

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.