Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the equivalent function of $ and & in C#.Net?
Message
From
26/07/2004 16:43:36
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, United States
 
 
To
26/07/2004 01:39:00
Czarina Joyce Villanueva
Innovision Systems International
Manila, Philippines
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00927823
Message ID:
00928070
Views:
25
>I just can't see an equivalent function of $ of VFP in C#.Net. In VFP, I can easily know if a string is existing in another string variable.
>
>mVar = 'ABCDEFZYZ'
>?'ABC' $ mVar && returns .T.
>?'NMN' $ mVar && returns .F.
>
>
>How can I do it C#.Net?
>
>Another thing is the macro-substitution? Is it possible in C#.Net?
Czarina,

While there is not exact macro-substitution you can do shell commandline executions.

Imports System
Imports System.IO
Imports Microsoft.VisualBasic

dim oshell as New Shell.DisplayCommand()
vbshell.SomekindofAction



Or

You have use AddressOf which will come the closes to marco-substitution of FoxPro.

AddHandler objValid.ValidationEventHandler, AddressOf ValidationHandler

Public Sub ValidationHandler(ByVal sender As Object, ByVal ByValargs As ValidationEventArgs)
--do something

end sub

Hope this helps
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°`°º¤ø¤º°¤º°
Carl Evans
CEO & President
System Answers Consulting, Inc.
MCSD .NET, ASP.NET, C#.NET, VB.NET,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform