>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,