Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 9th, 2003, 01:30 PM
Zuuker Zuuker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Southern IL,USA
Posts: 6 Zuuker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
New Error Qualifier?

--------------------------------------------------------------------------------
Private Sub Command2_Click()
Dim X As Integer
Regg = 2
If Asc(OwnerName(2)) = 91 Then
cr$ = Chr$(13) + Chr$(10)
Msg$ = "To Continue You Must Select OK !" + cr$ + " Then Select Set - Up To" + cr$ + " Configure Your Register Slot"
X = MsgBox(Msg$, 1, "Register 2 Selected", HelpFile, Context)
Form2.Hide
Load Form3
Form3.Show
' Msg$ = Cnf(Regg).R + " " + Cnf(Regg).S
' MsgBox (Msg$)
End If
[ If Asc(Cnf.R) = 0 Then ]
Form2.Hide
Load Form3
Form3.Show
End If
Msg$ = Str(Asc(OwnerName(2))) + "ASC"
MsgBox (Msg$)
If Asc(OwnerName(2)) <> 91 Then
If Cnf(Regg).R <> "" Then
Label1.Visible = True
Text1.Visible = True
Text1.SetFocus
'Msg$ = Cnf(Regg).R
'MsgBox (Msg$)
End If
If Cnf(Regg).S <> "" Then
Label1.Visible = True
Text1.Visible = True
Text1.SetFocus
'Msg$ = " " + Cnf(Regg).S
'MsgBox (Msg$)
End If
End If
End Sub

The line in the Brackets causes a Invalid Identifier Message, I have no idea what that means, how do I prevent that?

Reply With Quote
  #2  
Old November 9th, 2003, 02:09 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,713 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 23 h 57 m 59 sec
Reputation Power: 688
You have more than one error in your code. If you are using VB6, try starting here.

http://msdn.microsoft.com/library/e...l/vb6anchor.asp

Reply With Quote
  #3  
Old November 9th, 2003, 10:56 PM
Zuuker Zuuker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Southern IL,USA
Posts: 6 Zuuker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Bad Code Identifier?

Went to the web site! If I wanted to do that I would'nt of posted on a Forum. It would take me 2 years of reading to find out where the hell they have hidden the answer. NO ONE would post on these forums if it was so simple to get the answer's from Microsoft. That's why we need you Guru's!

Reply With Quote
  #4  
Old November 10th, 2003, 08:01 AM
Fisherman's Avatar
Fisherman Fisherman is offline
Inherits Programmer.Slacker
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Location: Between my Id and your Ego
Posts: 2,171 Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 1 m 37 sec
Reputation Power: 110
Send a message via ICQ to Fisherman Send a message via AIM to Fisherman
ok.. I'll bite... what is "(Cnf.R)"?
__________________
Fisherman

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - A.Einstein

Reply With Quote
  #5  
Old November 10th, 2003, 09:37 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
Hi,Zuuker!U should know any language has its syntax!If u use VB syntax rule,U will get the correct result!
If u need,this is a link about vb introduce & tutorial:http://www.free2code.net/tutorials/...4/vb6_intro.php

Reply With Quote
  #6  
Old November 10th, 2003, 10:26 AM
Zuuker Zuuker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Southern IL,USA
Posts: 6 Zuuker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Chew on this! Cnf.R is the 18 type in an Type & End Type and is set to String Times 8. This particular Type - End type group compose's the Configuration file for a Check register Program. It is made up of strings, currency and long Integer variables. It is important because the whole program revolves around the info it contains.
Thanx cleverpig, I will try that!! I know I am doing something wrong, but it pisse's me off that Bill Gates didn't make VB exactly Like PDS 7.1 which I beleive was the greatest language ever. I could try anything in that and it all worked as it was explained in the manual. VB DOES NOT ALWAYS work as explained in the manual! If it did this statement could not possibly cause a Type Mismatch error. If Cnf.R="NoneNone" then, BECAUSE it is referencing a string of the exact length specified. Thanx for the Help!

Reply With Quote
  #7  
Old November 10th, 2003, 09:44 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,713 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 23 h 57 m 59 sec
Reputation Power: 688
Well, your code has numerous statements that are not correct for VB. If you don't use the correct syntax you won't get your program to work. If you don't want to use the documentation available maybe someone will write your code for you.

What version of VB are you using?

Reply With Quote
  #8  
Old November 12th, 2003, 05:28 PM
Zuuker Zuuker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Southern IL,USA
Posts: 6 Zuuker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
For some reason the goofy thing is working. Now I've got a new problem!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > New Error Qualifier?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway