Take a look at the help for FUNCTION. It gets as close as you'll get to
strong typing in VFP.
? TIME(), MyFunction("Strong typing in VFP? ", 3)
&& Notice the "AS STRING" at the end of this.
FUNCTION MyFuction(tcParam1 as String, tnParam2 as Integer) AS STRING
LOCAL lcRetVal
lcRetVal = REPLICATE(tcParam1, tnParam2)
RETURN lcRetVal
ENDFUNC
(I just typed this in without testing.)
I don't think the compiler would catch the error if you actually
returned some other data type than STRING however.
I hope this is what you were after.
-Kevin
CULLY Technologies, LLC
Allen wrote:
> thanks Rick it does but there is still nowhere to put in return types and
> strict data types
> Allen
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Rick Schummer
> Sent: 08 January 2008 15:30
> To: [EMAIL PROTECTED]
> Subject: RE: classes
>
>>> mind you, there must be a way of doing it visual. Isnt there ?<<
>
> CREATE CLASS
>
> Brings up a dialog with file pickers.
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.17.13/1213 - Release Date: 07/01/2008
> 09:14
>
>
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.