Sub Calls - can I send an Edit Field

drj

Member
Licensed User
Longtime User
I am converting a vb routine to your environment.

I have the following utility that I use to get data from text boxes. It appears that I cannot pass your ebittext object in a routine? can you help?

Sub getText(ByRef TB As EditText ) As Double

Try

getText = CSng(TB.Text)
Catch ex As Exception
getText = 0

End Try

End Sub
 

drj

Member
Licensed User
Longtime User
Hi Thanks , I have a question on that

Hi Can I do this. I want to return a double from the call. The idea is to convert the text in the edit field to a floating point number?



Sub getText(TB As EditText ) As Double

Try

getText = CSng(TB.Text)
Catch ex As Exception
getText = 0

End Try

End Sub
 
Upvote 0
Top