Syntax: xxx = yyy (Fix(Val(ya ya ya))) ??? 
Author Message
 Syntax: xxx = yyy (Fix(Val(ya ya ya))) ???

The following code works fine.
In the line of code: << Call EvaluateAge(Val(Me!txtAge)) >>
I dont understand << EvaluateAge >> and << (Val(Me!txtAge)) >> work
together.

Where is it determined that iAge = Me!txtAge?

Then in the next line of code: << iAgeInten = AgePlus10(Fix(Val(Me!txtAge)))

Quote:
>> can you please explain the mechanics of (Fix(Val(XXX)))?

Option Compare Database

Option Explicit

Dim micounter As Integer

Private Sub EvaluateAge(iAge As Integer)

    If iAge < 30 Then

        MsgBox "Are you telling the truth?"

    End If

End Sub

Function AgePlus10(iAge As Integer)

    AgePlus10 = iAge + 10

End Function

Sub cmdOkay_Click()

Dim iAgeInten As Integer

    If IsNull(Me!txtName) Or IsNull(Me!txtAge) Then

        MsgBox "You must fill in name and age"

    Exit Sub

    Else

        MsgBox "your name is: " & Me!txtName & " and your age is: " &
Me!txtAge

        Call EvaluateAge(Val(Me!txtAge))

        i AgeInten = AgePlus10(Fix(Val(Me!txtAge)))

        MsgBox "In 10 years you will be " & iAgeInten

    End If

End Sub

--
George Padvorac

Guam



Sat, 29 Jan 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. easy one for ya, syntax stuff

2. rakam? yaz?ya ?evirme hakk

3. !U WANT MONEY WELL HERE YA GO!

4. Dinero YA

5. Don't ya just hate it when...(small rant)

6. YA QB Q: Bunch?

7. Two Questons for Ya (VB4(16))

8. Two Questions For Ya

9. ODBC Expert? Gota Question For Ya.

10. another easy one for ya!

11. How do ya replace Win95/98 logon form?

12. See if ya can get this one!

 

 
Powered by phpBB® Forum Software