Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / VB Syntax / April 2009



Tip: Looking for answers? Try searching our database.

Code suitable for different projects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michel - 04 Apr 2009 13:28 GMT
Hello,

I am using a few forms in different projects and add therm as link in each
project.
I want to make the code so general, that they fit in every project they are
linked to.
For instance I want to set the text property of a StatusStrip

mdiProject1.sstProject1Info.Text = "Testing"

but also in Project 2 the same code must apply, so I try to use variables as

Dim strProject = "Project1""
Dim strTest =  "mdi" & strProject." & "sst" & strProject & "Info.Text"

strTest = "Testing"

but this does not seem to work.

Can anyone help me how to write genereal code so that it is applicable in
more than one project?

Many thanks and greetings,

Michel
MikeD - 04 Apr 2009 14:08 GMT
> Hello,
>
[quoted text clipped - 19 lines]
> Can anyone help me how to write genereal code so that it is applicable in
> more than one project?

What do you mean by you add them as a link? Are you using VB6 or earlier?

I think these questions needs answered before anyone can help you. Except
when creating an object, I can't think of any case where you need to include
the project as part of a reference to an object.

Signature

Mike

Larry Serflaten - 04 Apr 2009 19:11 GMT
> Dim strProject = "Project1""
> Dim strTest =  "mdi" & strProject." & "sst" & strProject & "Info.Text"

That looks suspiciously like VB.Net code.

If that is the case, then this is the wrong group to be asking your question.
Try microsoft.public.dotnet.languages.vb

LFS
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.