Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the equivalent function of $ and & in C#.Net?
Message
De
26/07/2004 16:43:36
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, États-Unis
 
 
À
26/07/2004 01:39:00
Czarina Joyce Villanueva
Innovision Systems International
Manila, Philippines
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00927823
Message ID:
00928070
Vues:
26
>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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform