VS 2008 Additional Output To Data Extraction Program?
Sep 24, 2009
This is my current output in a textfile that is created during the program. (Its different from my previous post)
!CH1 = S11,CH2 = S12,
-66.979,-60.518,
-61.403,-60.546,
[code]...
View 17 Replies
ADVERTISEMENT
Oct 6, 2010
I need to add an additional dimesion to outputArrayOfBits() in the code below which I hope conveys my intention. I need to convert a one dimensional array of 1 to n boolean (bit) values into arrays that group them by 8's so the output can be consumed by someone needing these values to be in hex format (0000 1111) = 0F How do I change the declaration of 'outputArrayOfBits and the nested control loop to achieve that?
Dim inputArrayOfBits As New BitArray(32, True) ' I can't change this.
'Create array of bytes containing what will be sent out has hex numbers 0 - F
'outputArrayOfBits(0) = (1,1,1,1,1,1,1,1) 'Hex value FF
[code]....
View 11 Replies
Dec 6, 2010
I am trying to extract some data from a website using a LINQ statement, the XML is in the following form.
<parent>
<p>
<b>
Title
</b>
[code]....
I would like to get the As Of Date and Data (the data row is iterated several times). Also the table and as of date appear several times in the document (the table is active from a date).I can get the rows using the following LINQ but how do I get the As Of Date
Dim l_PricesTable = From rows In l_Xml.Descendants("tr") _
Where ((rows.Descendants("td") IsNot Nothing) AndAlso (rows.Descendants("td").Count >= 1)) _
Select Data = rows.Descendants("td")(0).Value,
AsOfDate = ???
I have no way of changing the XML as it is a 3rd party source. There is no XML element which contains just the as of date and also the table, they are all under the one parent node.
View 2 Replies
Sep 27, 2010
I have address data that is surrounded by random text. Is there a way to extract this data either with a call to a web service or some vb.net function?
example: 1111 S WILSON ROAD APT B8 CITY STATE 55555 0 0 0 0 0 0 0
View 3 Replies
May 7, 2010
i'm using two datetimepickers(from date and to date ) to extract records between these two dates.[code]
View 2 Replies
Feb 25, 2010
i have been searching the web for days and yet to find a clue on how to extract specific data from a flat file, i know how to extract all the data from flat file but not "specific data".
my problem now is that i need to extract a certain data out from a very very messy log file, what i need is to extract the decimal data right after "score=". it is in this format "score=1.938249".
for the decimal data right after "score", it is very random, there is no fix length to this. and also "score" does not fix in a specific position, it could be starting of the string or ending of the string of messy data.
just a peak on my messy data,
"time 20:34 17/1/2010 vlog=0 C:d7ad45f396850c532ef0ccf0da48d80di386peisgh437 ipint=98.1857991 score=1.78495 event@&1.13845"
"time 20:34 17/1/2010 vlog=1 C:Documents and SettingsDefault UserDesktop score=4.085651123 ipint=70.1578356 event@&0"
View 9 Replies
Mar 23, 2012
I've been looking over a bunch of code snippets and I'm just not understanding what is going on there.anding the connection, reading/manipulation, and closing pI keep reading all about these DataAdapters, Ole and Sql and Sqlce and I don't know which to use or whatever.I made a database in VB.NET 2010 that came out as database.sdf and I selected the Local Database option (I assume this is relevant?). I then populated the database with a row of data with column titles and a primary key. The table contains many different columns, but for test purposes, the following is relevant:
DB Name: db_test
Table Name: Locations
Primary Key Column Header: CITY
[code].....
View 1 Replies
Apr 24, 2009
I need to extract data from MS project 2003 .mpp file in dot net and dump in SQL Server.What is the best solution for this?1) I tried using OLE DB and fill dataset however it throws exception.
OleDbConnection connection = new OleDbConnection(@"Provider=Microsoft.Project.OLEDB.11.0;Initial Catalog=D:TestProject.mpp;");
[code]....
View 1 Replies
Apr 25, 2009
Is there a way i can execute a CLI program and have it output or return what the CLI program sais, such as ping etc.
View 3 Replies
Nov 28, 2011
So I got this program to generate me some data and I want to show that data to a label.
If I don't do a display I can generate about 20,000 data per second, but if I do, I get about ~9,000 data per second.
PS. Since the generating logic in is a thread, I have a function that does the displaying to the label.
View 1 Replies
Mar 31, 2010
Is it possible to output a graph drawn in vb.net and plotted with data to a pdf file format? or any microsoft office format?
View 3 Replies
May 16, 2011
I work in an engineering design house and programming is not my actual profession. And I am relatively new to VB .net (previous i had worked in vb 6)
I am working on an in house application. I am coding a simple application in vb .net. This applications takes a few inputs from user and calculates a result. Now I want to implement a simple functionality that user should be able to save the input and results just like most of the windows programs can in a new file format. And user should be able to open the save file when desired.
View 10 Replies
Sep 15, 2010
Still getting to grips with regex and have seen a few samples about that give me most of what I need so asking for opinion on this. I need to extract x words from a single line, so the regex could use w+ to get characters, however my line may contain anything inside the word like:
[Code]...
View 6 Replies
Mar 1, 2012
What I am trying to do: There are three powershell scripts with different time delays as shown below.I am trying to run them asynchronously in .NET and I followed this article to implement Asyncrhonous programming. Where I am stuck:The I am not able to retrieve output after the events are invoked.The scripts are being called but then the program ends and it shows "Press any key to continue" in console windows.I don't what I am missing here.
Info: JobRequest is a class that I use to pass around information keep track of jobs.
Sub Main()
OurAsyncFunctionCalling("psDelayScript2.ps1", "-arg1 4 -arg2 5", 1)
OurAsyncFunctionCalling("psDelayScript1.ps1", "-arg1 2 -arg2 3", 2)[code]......
View 1 Replies
Jul 2, 2009
I'm am very new to Vb.net, I have coded in VBA.I have created a form that will open Microsoft Excel, add header text to the columns, and insert the text from a few of the controls located on my form ("not finished adding controls") when I click the Submit button.
My problem is that when I enter different data into those controls and click the submit button again, I get a new Excel Workbook with the new data.I need the new data the be submitted to the .Activecell.Offset(1,0) of the already open workbook.Ultimate Goal of Submit button is to open new Excel workbook, Enter multiple rows of data via Visual Basic Form.
[Code]...
View 2 Replies
Oct 5, 2010
I've got 2 data tables.
tblComponents - CompID (keyed), Name, PartNo
tblProductComponents - ProductID (keyed), CompID(keyed), PercentValue
I want to show tblProductComponents and have only the PercentValue the only value that can be updated. But, I also want to show the component information as well.I can do this in a view but then I lose the update ability using the tableadapter.
View 6 Replies
May 2, 2011
I am pulling different information from the same file at two different times: 1) The first time, I pull information that is inserted into a combobox. I need to use the combobox as a filter for when I pull the information a second time. 2) I pull different information from the same file, and it is outputted into a datagridview table. I already have a filter in place when the information is pulled the second time, and I was wondering if I could add to that filter or if I have to make another filter? The filter (or filters) will be used to filter the information in the datagridview before it is outputted in a chart.
This is the code for binding the combobox to the information
Dim cnRange As String = "provider=Microsoft.Jet.OLEDB.4.0; " & _
"data source='" & strFileName & "';" & _
"Extended Properties=""Excel 8.0; IMEX=1; HDR=No;"""
[code].....
View 3 Replies
Jul 17, 2009
Write a program that will output the sum of the powers from 1 to the supplied number. For example an input of 4 will produce 288 ( 1 exponent 1 + 2 exponent 2 + 3 exponent 3 + 4 exponent 4 = 288)how can i work with this?
View 37 Replies
Mar 1, 2012
I have a partial view[code]...
In this partial view I create new ViewDataDictionary to pass additional data to my editor. In the editor I access ViewBag.Classes and its value is null. However, when I debug I can see that the ViewBag contains "Classes" key. Here a screen dump:
Why is this happening to me and what can I do to pass this value from a partial to editor template?
View 1 Replies
Jul 1, 2009
Searching for data in Access then showing output with VB 2008
View 6 Replies
Nov 11, 2010
i have a Checkedlistbox in a windows form, and have defined 5 values in it.Also the form holds a datagrid in it. i have manually defined 2 columns in it.Now i would like to populate datagrid with some data according to the check list values selection. When any selection was done in the checkedlistbox, some data need to added to the gird.in case if i am ticking further selection, i need the datagrid to be inserted with additional values with the prior populated data.
being a beginner, i am not able to get any idea to get this worked.
View 4 Replies
Aug 16, 2011
I am trying to implement login page using Form Authentication in ASP.net using vb code.I follow the steps in How To Implement Forms-Based Authentication in Your ASP.NET Application by Using Visual Basic .NET. I created a function in login page :
Private Function ValidateUser(ByVal strUsername As String, ByVal strPassword As String) As Boolean
and call it in btnLogIn_Click
Protected Sub btnLogIn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogIn.Click[code].....
Things works fine and i can get the username display in label.However,I need to get more user data like UserName, Fullname and RoleCode. Also, i would to display the user's fullname to instead of usename in welcome message. I was told this can be done using FormsAuthenticationTicket method to store addictional user data in the "my user data" section. Do i need to create a user data class to store the user data and then use it in the FormAuthenticationTicket? If yes, how should i do it?
View 1 Replies
Nov 5, 2011
Ok I can successfully connect to my Access database but I am still learning on how to output that data. Here is the run down.I am designing a page where the user inputs the customer ID and then gets a list of incidents for that customer. Then I would like the user to be able to add a survey about the incident.Problem I am running into is the ability to display this data. I have tried various method. Eventually I want to be able to display the data into a listbox and have them select it and take the survey but I am not near that far yet. Here is what I have on the connection and my attempt which doesn't work to output the data:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim sql As String = "SELECT [Title], [Description] FROM [Incidents] WHERE ([CustomerID] =
[code].....
View 1 Replies
Dec 13, 2009
I need to make a custom control and decided, before that, to see if there were any additional components that I could utilize.When looking through the list, I found a component called an Expander. So I decided to add it and see how it works.
After adding it, I couldn't find it at all within the toolbox. I went back to Choose Items and it was checked, but still not in the toolbox.It's probably important to note that it is a WPF component and this is not a WPF Project. Would that make a difference?Is there something else I may be doing wrong?
View 3 Replies
Mar 16, 2010
I was wonder if anyone knows how to add additional buttons to the title bar. Please, Don't go to too much trouble, Just if you know a link to this or know how to do it. I did find This. But, I would like to have something like shown in this Image:
View 9 Replies
Jul 7, 2009
Can a BackgroundWorker call additional subs? In my program I am connectiong to an OPC Server. I am doing some AsynReads, which in themselves don't take anytime. But Once I get the AsyncReadComplete returned, I want to do the AsyncRead right away. Basically I need to Loop them. The problem now is that while it is doing this, Everything is unresponsive, because it is just going through the loop. So to perhaps rephrase the question, If the BackgroundWorker initiates a process (in this case AsyncRed) would the returned AsyncReadComplete be apart of the BackgroundWorker or seperate Thread?
View 7 Replies
Feb 17, 2010
when i click a command button i want two additional command buttons to become visible,when i click the original button a second time i want the two additional buttons to be set to visual false.i was going to use a counter and if statements but im sure there's got to be a simpler way.
View 2 Replies
Jun 10, 2009
I would like all additional forms opened by some command the user performs on the Form1 to open in the center of Form1, no matter where the user has physically moved Form1 on their desktop screen. The application itself (Form1) is a small box with dimensions of 442x306 that will open even smaller forms on top of itself. Right now, I have everything positioned to open in the center of the screen so, in theory, everything works/looks fine as long as the user doesn't move Form1 anywhere.
View 15 Replies
Sep 17, 2010
So, I wrote a loader that extracts an executable that I have stored as an embedded resource. It writes it to %TEMP%my.exe.I made my.exe extract some files on launch. Thats why I made it in the temp. But the problem is, when I do Shell(my.exe) to the temp dir in the loader, it runs ok. But the files execute to where my loader is. :S
I was expecting the files to be extracted WITH the my.exe in temp. So if ran on my Desktop, i'd get all these files, as with putting it in temp, it'd work a lot better.Any idea how to get my.exe to launch and not put files from my.exe to extract to the loader's launch dir?
View 3 Replies
Jan 11, 2011
I have this code to show percentage value of archive extraction. Now it shows 1-100% How do I make it have 2 more digits e.g 01.00-100.00% ? [code]
View 7 Replies