Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 11th, 2007, 09:56 PM
Authorized User
 
Join Date: Mar 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB6 sindrom

What is wrong with my simple code below ? I tried to call frmDemo and frmMKira(Windows interface) from my MDI form (start up object) but could'nt compiled.

"Method or Data member not found" helpppppp !!!!



Private Sub frmDemo_Click()
Call frmDemo.Show
End Sub

Private Sub frmMkira_Click()
Call frmMkira.Show
End Sub



 
Old September 11th, 2007, 10:04 PM
Authorized User
 
Join Date: Jul 2007
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to vksingh24
Default

Do it in this way

Private Sub frmDemo_Click()
Load frmDemo
frmDemo.Show
End Sub

Private Sub frmMkira_Click()
Load frmMkira
frmMkira.Show
End Sub

__________________
Vikash Kumar Singh
 
Old September 12th, 2007, 09:39 PM
Authorized User
 
Join Date: Mar 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Still the same error buddy after I add up load frmDemo and frmMkira...if there anything I did wrong here, please advice.

"Method or Data member not found"

Regards...




 
Old September 13th, 2007, 07:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

did that forms exists in your project?? the code should work without a problem..

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old September 13th, 2007, 10:16 PM
Authorized User
 
Join Date: Mar 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Forms all exists in my project, ok I will delete my project and create back again if u said the code wrote by Mr. Vikash Kumar should be ok.

Thanks a lot my buddies.

 
Old September 17th, 2007, 03:56 AM
Authorized User
 
Join Date: Mar 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am seeking for advice for my two question here.

1.Question

I only want USER to key in input which > 0, not blank and numeric input ONLY, how should i code using VB6....

If i > 0 And i <> "" And --> what should i write here

2. Question

How should I set my listbox column

For num = 1 To n

   n = n + 1

List1.AddItem Format(a(num)) _
   & " " _
   & Format(b(num), "0.00") _
   & " " _
   & bil _
   & " " _
   & Format(c(num), "#0.00") _
   & " " _
   & Format(d), "#0.00")

Next num

End Sub

Thank you...

 
Old September 18th, 2007, 10:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there..

1. if you want i to be numeric then use the function isnumeric and also if that is true test it for >0...

2. I don't understand what are you trying to do... you are adding n inside the for loop??? that's a serious no no!
if you want every item in a diferent column you should add the item (that will return a pointer to the item if I don't remember bad) and then add the rest of the data to the subcolumns of it... sorry I don't have code here to provide you...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old September 26th, 2007, 09:17 PM
Authorized User
 
Join Date: Mar 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you buddy....its help me a lot.






Similar Threads
Thread Thread Starter Forum Replies Last Post
SUB NAME IN VB6 Nadalik VB How-To 2 June 21st, 2006 03:30 AM
VB6 how to use a COM+ pevl VB Components 3 November 26th, 2005 09:16 AM
VB6 How to minhtri VB How-To 2 September 30th, 2004 06:08 AM
Where to get VB6 HaXXeD Beginning VB 6 2 December 5th, 2003 04:21 PM
VB6 ?? wickman Wrox Book Feedback 1 June 5th, 2003 08:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.