Take The Code And Rewrite It Into Subs?
Oct 10, 2010
Trying to learn subs at the moment.I need to take the following code and rewrite it into subs.
Private Sub btnCompute_Click(...) Handles btnCompute.Click
'Convert feet and inches to centimeters
Dim str As String[code]....
View 14 Replies
ADVERTISEMENT
Oct 23, 2011
I have some code that i have wrote earlier in VB.NET
Dim zippedLogFileName = f.FullName + ".gz"
Try
Using inputStream = f.OpenRead(),
[code].....
View 4 Replies
Jan 26, 2011
How to rewrite the code below using select case? [code]....
View 8 Replies
Sep 22, 2009
I got that line of code and it's getting duplicated a lot
myString = If(myObj1.myProp Is Nothing, "", If(want = "abr", myObj1.myProp.abr, myObj1.myProp.desc))
VS 2008 Remember Textbox Text when Form reopens
View 3 Replies
Jun 15, 2009
I'm trying to call a private sub in another private sub. For example ;
[Code]....
View 13 Replies
Oct 26, 2009
When you refrence a Function like this one:[code]You may want to be able to get more out of that, like this.[code]So how would I be able to add subs or functions onto a sub or function like that?
View 4 Replies
Oct 12, 2010
So there is a program that is missing some files and written in C++, and it can no longer be compiled. Therefore I am trying to rewrite the program in Visual Basic (C++ is not my preferred language... lol) And I need some help understanding what this code is doing and how I can, in a way, "convert" it to VB language. I looked for a C++ to VB.NET converted but it costs $199 and I actually want to know what the code is doing... Here is part of the code for one of the C++ files (it is part of a program that decodes a file type into a readable format, BTW.):
[code]...
I want to know what is going on here and how I can recreate this in Visual Basic.
View 13 Replies
Mar 28, 2011
Currently I have to parse each row in the file into a string array segments(). Then I look at the first few elements to see where I am at. E.G.
'Patient Loop
IF Segment(0) = 'NM1' and Segment(1) = 'QC' and current loop = '2000' Then
PatientFName = Segment(2)
[code].....
View 9 Replies
Oct 28, 2009
How would I rewrite VB6 DefInt A-Z inVB.net?
View 1 Replies
Mar 7, 2009
I need a code that rewrite the Realmlist.Wtf file but before that it have to ask for the path to the file. And if its possible it have to remember the path, so if I click it again it automatically change it.
View 9 Replies
Jan 9, 2012
I'm new to programming and gave VB.NET a try. I (almost) finished a project (using VB.NET Express 2010) and now I'd like to rewrite it in HTML5 or CSS or Javascript or AJAX, or embedded Flash. Which one would you recommend? Which one as those 5 would be easier to learn for someone with some vb.net experience?
View 4 Replies
Jan 4, 2012
I'm trying to rewrite a C++ library. But I have an issue. I'm not extremely pointer-savvy. In the C++ class there is a std::vector that holds unsigned int pointers (vector<unsigned int*>), and the int pointer just points to an array of integer data.
Here is the C++ code I'm a bit unsure about:
unsigned int* relocation = m_relocations.front();
m_relocations.pop();
unsigned int* reloc = *(unsigned int **)relocation;
View 3 Replies
Dec 6, 2009
basically the user enters phrases into the textboxes, and i use <TAG> in the text so that every time button is clicked the selected text is rewritten including a phrase from the textbox.
View 19 Replies
Apr 2, 2012
I'm trying to make some friendlyurls in my vb.net (.net 4) project and I'm trying to do it using something I read about global.asax and Application_Beginrequest but I can't get it to compile.
[Code]...
View 2 Replies
Apr 25, 2012
I'm using ASP.NET 4 / VB.NET / IIS to build a web application. Folks will access the web application via a URL like so: [URL] So, for example, here is the urls for Jane Doe, John Doe, and James Doe respectively: [URL] I need to somehow pass them off (no matter what name is entered) to a default.aspx page which then pulls in the name portion of the url and uses it to perform a lookup against the database which contains info. about this particular person and displays a personalized page based on that information.
[Code]...
View 1 Replies
Mar 3, 2010
How to rewrite Webconfig connection string at runtime.I have input textbox for Server,UserName and Password.Is it Possible to read from these textbox?
View 1 Replies
Oct 27, 2011
After rewriting a VB.NET assembly with Mono.Cecil the 'Call Stack' debugging window in Visual Studio 2010 shows the language as C# and not VB.NET. Is it possible configure Mono.Cecil to rewrite an assembly so the debugger recognises the rewritten assembly as VB.NET?The following Mono.Cecil simply reads and saves an assembly without modification. However, the debugger reads the new assembly as C# instead of VB.NET.
Dim readerParameters = New ReaderParameters() With {.ReadSymbols = True}
Dim writerParameters = New WriterParameters() With {.WriteSymbols = True}
[code]....
It is desirable for the rewritten assembly to be VB.NET so the debugging windows 'Local' and 'Immediate Window' are the VB.NET versions rather than the C# versions.
View 1 Replies
Jul 2, 2009
I have a VB.NET web app that is about 2000 lines of code, contains about 20 different subroutines, and about 50 different functions.Is there an easy way to "rewrite" this to take advantage of classes and objects?
View 5 Replies
Dec 29, 2009
I got that little function(I changed the name of variables)
Private Function everythingLinked(ByRef myClass As cls, ByVal found As Boolean) As Boolean
If Not found AndAlso myClass.checked = False Then
myClass.checked = True
[code]....
I want to rewrite it so it would only be loop and no recursion and I'm currently lost?I'm passing a class to this function(with a starting value for found as false) to know if it is linked to the middle of the tree. The class got an array with a maximum of 4 link to other class and it can be circular(this is why I have a checked_link boolean).It does the recursion until there is no more link(return false) to check or until it find the middle link(return true).
edit?for an example, this
in pos 0 got link with 1
in pos 0 got link with 6
in pos 1 got link with 0
[code]....
middlepoint would be pos 15 the code above can prove that every position can be linked with the middlepoint so initial arg would be
everythingLinked(random pos, false)
and in this case it would be always true
View 5 Replies
Feb 1, 2010
I want to rewrite logonui.exe completely. I want to add features that I just can't in ResHacker. Problem is I have no idea where to start. Well my idea is for it to be more visually appealing and faster. Almost like a dock with the user pics fading away as they are further away from the centre and having them zoom in and out aswell as move toward the centre when the mouse enters.
View 2 Replies
Mar 23, 2012
In my old VB6 app, I defined fields such as:
CODE:
As I am trying to rewrite this procedure as a project in vs 2008, all of the OutLook references are being flagged.
In project properties/references I added the reference: Microsoft Outlook 11.0 Object Liberary, but still flagged as error.
Is there another namespace or something I need?
View 1 Replies
May 20, 2010
Can I code to add transaction for some subs? If there is an error in any sub will roll back.For example,
sub1 delete some tables
sub2 insert data into tables which just be deleted
sub3 send out confirmation email
sub4 make submit button disable
I knew that transaction will work for sub1 and sub2 but I do not know if transaction will work for all of subs
View 1 Replies
Feb 2, 2009
Just wanted to start out by saying that I am completely new at this whole programming thing. I am pretty sure the answer is very simple and staring me right in the face but I can't figure it out.Basically, what I want to do is check to see if a directory exists and if it does not, then create it. Then I want to populate a list box with a list I have stored in a text file.
The problem I run into is that while my program runs, as far as I can tell my Subs do not. I just want them to run on their own when the program starts but they don't.
Imports Microsoft.VisualBasic
Imports System.IO
Public Class myProgram
[code].....
View 3 Replies
Jun 9, 2010
I want to add a description for my subs :
My Website [URL]
View 2 Replies
Feb 7, 2012
I'm working on my program and I have 10 subs that grab 10 files and format them. Is it possible to run more than one sub at once? I tried to google it but there doesn't seem to be much available... If anyone could just point me in the right direction, that would be awesome!!
[Code]...
View 2 Replies
Feb 21, 2010
I was reading the lesson on how to use functions and subs and I'm having a bit of a hard time understanding this part:
[Code]...
View 4 Replies
Aug 31, 2010
I'm trying to use the Fade In/Out subs. Currently the fade in works perfectly. The fade out is the one I am having problems with. In my form's closing event:
[Code]...
I really think the problem is when it is calling for a "new object", but I don't know what to put in place of it to just work on the old object. I wanted to see if anyone has a solution to this issue, or perhaps an alternate solution that fades out just as nicely as the fade in.
View 10 Replies
May 22, 2010
Is there a way to stop other subs from running while in a separate sub.
for instance say your in the sub
CreateNumber()
and the subs are setup like
CreateNumber()
AddNumber()
DeleteNumber()
Is there a way to be in CreateNumber() and call a function to stop AddNumber from running after creaetNumber() is finished? i just want my program to sit there to wait for an event to happen.
View 1 Replies
Feb 5, 2012
I am trying to access a datatable created at form load from a sub created for a button click. I get the message 'dt_ShoppingBasket' is not declared for the following 2 lines.[code]If I move the creation of the Datatable into the button click sub then the problem goes away. I've listed the relevent coding I am using below.[code]
View 3 Replies
Jan 31, 2012
I'm working with a third-party library interfacing to an old database system. There's a method - CallProg that calls a "stored procedure" (for lack of a better translation - any Pick users in the crowd?). However, instead of doing something like this:
Public Sub CallProg(ProgName, ParamArray ProgArgs() As String)
...
End Sub
[code].....
View 2 Replies