Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return statements within the with endwith blocks
Message
From
12/01/2017 13:56:01
 
 
To
12/01/2017 13:07:44
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01646361
Message ID:
01646613
Views:
51
>>>>>>With ... Endwith is a feature I never pined for when I switched to .NET
>>>>>>.NET's awesome intellisense more than compensates for any additional typing.
>>>>>
>>>>>Typing is the least of the problems.
>>>>
>>>>If you saw how I type, you might think differently.
>>>
>>>Woud you be so kind as to show us a block of .NET code of yours?
>>Sure
>>
>>This is from a menu program
>>
>>
>> private void maintainBillingAddressToolStripMenuItem_Click(object sender, EventArgs e)
>>        {
>>            if (commonAppDataMethods.IsRoleAuthorized("MAINT04"))
>>            {
>>
>>                ApplicationMaintenance.MaintainStoreBillAddressMethods maintainStoreBillAddressMethods = new  ApplicationMaintenance.MaintainStoreBillAddressMethods();
>>                maintainStoreBillAddressMethods.menuform = this;
>>                maintainStoreBillAddressMethods.ShowParent();
>>            }
>>        }
>>
>>
>>Please note that most of the typing was done by intellisesnse.
>
>But still... a line with 167 characters for a simple a=createobject("b")? Tsk, tsk...

Yes, it's verbose.
I could have eliminated "ApplicationMaintenance." with a "using" above, but this is a menu program that references almost a dozen projects and it's more convenient for me to see the project name in the code than look for it elsewhere.
Again, I didn't have to type it and once this compiles no one will know that I could have shortened this line.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform