On 5/8/2012 3:12 PM, Tracy Pearson wrote:
> MB Software Solutions,        LLC wrote on 2012-05-08:
>>   On 5/8/2012 10:23 AM, Paul Hill wrote:
>>   You can do this in C#:
>>
>>   MyClass class1 = new MyClass()
>>   {
>>>      Field1 = DateTime.Now,
>>>      Field2 = 1234,
>>>      Field3 = "test",
>>>      Field4 = false;
>>> };
>>>
>>> But personally I'm not keen on this.
>>
>>
>>   May I ask "why not?"  That looks like the same as a defined class in VFP:
>>
>>   DEFINE CLASS Paul as Custom
>>      Field1 = DateTime()
>>      Field2 = 1234
>>      Field3 = "test"
>>      Field4 = .F.
>>   ENDDEFINE
>>
>
> The C# syntax is the instantiation, the VFP is the declaration.

True, but of course I could pass parms in the instantiation of the VFP 
object to set the parms as well, either by explicit parms or better yet 
a parameter object handled in the object's Init event.


-- 
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

_______________________________________________
Post Messages to: ProFox@leafe.com
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/4fa97188.4060...@mbsoftwaresolutions.com
** 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.

Reply via email to