|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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? ![]() |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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!
![]() |
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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! ![]() |
|
#7
|
|||
|
|||
|
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? |
|
#8
|
|||
|
|||
|
For some reason the goofy thing is working. Now I've got a new problem!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > New Error Qualifier? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|