XML Path - Replacing The Name Of A Category With A New Name
Oct 23, 2011
I'm trying to write a statement where I'll be replacing the name of a category with a new name, but when it comes to executing the command I'm getting an error that says;
Quote:
Heres my command statement
CODE;
View 9 Replies
ADVERTISEMENT
Mar 11, 2010
I am trying to replace a string which is actually different from line to line in a text file. I want to end up with a filename but without the path. For example:
My text file contains:
C: est estingmorefilename.mpg
C: est estfiles1 estfile4.mpg
W: estinglocation estingmore estfiles9.mpg
[Code]....
View 8 Replies
May 18, 2011
txt1 = help and txt2 = me! txt3 = not here, when i enter the other box i want the okay to drop sign to come up, after drop txt1=me! and txt2 = help.if i drag to txt3 display the can't drop sign.Iv'e tried everything all i can do is replace one way.also,i want the can't drop and can drop simbols to show.so far
Public
Class Form1
Private
Sub tbMouseDown(ByVal
[code]....
View 3 Replies
Jun 6, 2011
I am using an asp.net Datalist control. I have a table titled 'Category' with two columns 'Category Id and Description'. When I display the results on my webpage the 'CategoryId' number comes up and not the Description. I want the Description that corresponds to the number. I want to write it to my label control 'lblCategory'. Using ADO.NET I am having trouble with what to put between:
[Code]....
View 7 Replies
Jun 4, 2011
how to create a sub category in vb.net? well I'm thinking of building a sales and inventory system of computer parts and peripherals and here's the logic. I'll be assigning each of them category like for example:
Componenets[INDENT]Peripherals[/INDENT][INDENT]Networking[/INDENT] - Processor[INDENT]- Chasis[/INDENT][INDENT] - Router[/INDENT] - Memory[INDENT]- keyboards[/INDENT][INDENT] - Bridge[/INDENT] - Storage[INDENT]- Speakers[/INDENT][INDENT] -Hub[/INDENT] - Optical Drive[INDENT]- Flash Drives[/INDENT][INDENT] - Switch[/INDENT] - Graphics Card
There you go. and the main categories are: Componenets, Peripherals, Networking and the Subcategories are with the -(dash) on their names if you have an idea also on the database structure please give me also some tips about how to construct the database tables.
View 2 Replies
May 13, 2010
I need to set automatically a category to alll email in a IMAP folder. (and
for every new incoming email in this folder)
I've found this code in VBA but it give a category only to the selected[code]...
View 1 Replies
Aug 22, 2006
I have a Access program and I'm using VBA code in the background to run Winunzip using shell command. Well, the path of the .zip file has spaces in it and it's not recongizing the path as a valid path. Is there a another way to tackle this problem besides the shell?I can't us pkzip either. Has you can see I had to use progra~1 instead of Program Files.[code]
View 2 Replies
Sep 29, 2011
I am writing a basic blog application to learn mvc 3. I have problems retrieving posts by category. The url looks like /Blog/Browse/Category_Name. I can get the posts if i hard code a value for category. So it would seem that Category_Name is not getting pass to my EF statement in my controller. the category had a period in it so it was not matching.
View 1 Replies
Dec 27, 2010
I am trying to trap an error that would occur if the user in my database does not select a category from a combo box before saving the record.[code] Naturally the example does not work, but would like some help with this.[code]Categoryid is set up as not to allow null.type int
View 8 Replies
Nov 6, 2010
I can't seem to figure out how to write this query properly. I've tried various combinations but nothing's worked yet.Below is the relevant portion of my database model:
I need to select the products that match a given Category and Group, and that match a given Year, Make, Model, submodel. This I've done below: ItemList = From P In gDataContext.Products.Include("Groups").Include("Groups.Category1").Include("LookupYearMakeModels") From G In P.Groups Where G.Category = Cat And G.Grp = Group From Y In P.LookupYearMakeModels Where Y.Year = YMM.Year And Y.Make = YMM.Make And Y.Model = YMM.Model And Y.Submodel = YMM.Submodel Select P
[Code]...
View 2 Replies
Jun 28, 2009
I have products form and categories form here i am creating new products and categories both have its own id and also i need to create one sequential no for both depend on current year when i create new [code] also when i create new product i want its sequentialno to be same.1
View 2 Replies
Apr 17, 2009
I am using VB.NET 2008. I am using propertygrid and have added a few elements. I have 3-4 categories and wanted to know how can I expand/collapse a particular category thru code. I did find a code on net but it didn't work.
View 10 Replies
Sep 25, 2011
I work with a large shared mailbox within which several individuals each have a folder of their own. I am trying to develop a tool which will monitor how many emails each individual has in their own folder including a breakdown of what categories have been applied to each email (IE In my Subfolder there are 20 Emails - 10 Blue, 5 Red).I have already coded a prototype but so far I have only been able to get a general count working not a breakdown of categories.Does anybody know if this is possible? I have searched a see lots of code for setting the category with VBA but none for querying it.
View 2 Replies
May 17, 2012
The combo box will show the category. Suppose there are 2 categories A and B. When we click on A then the code given inside 4 buttons should work. I tried in this way ,I checked the condition of selecteditem based on that added all 4buttons sub code. But it shows blue underlines.
I did in this way: If ComboBox1.SelectedItem = "A" Then Private Sub Button1_Click....
[CODE]............
Like this I have used 3 more buttons. How can it be done?
View 1 Replies
Jan 30, 2012
I wrote a VB 2010 app on a single core processor utilizing performance counters which runs fine. However the release exe fails on my quad core, trapped by the OS on its first access to a PerfCtr. I've loaded VB Express Studio into the quad core
and when running the app in Debug I get this error "Cannot load Counter Name data because an invalid index was read from the registry." Similarly, adding a counter to the app on the quad machine results in the empty drop-downs for category and it sub fields.
where I can get an update to these registry entries?
View 1 Replies
Oct 31, 2011
I have a DLL with me in which i have created a component class. But as long as the project is open the Tool shows in the ToolBox, but the moment i open a new project, without the DLL project opened along with it, the Toolbox does not show me the Tool/Control/Component Class , which i have created. How do I register my component so that it shows in the ToolBox, other than the usual way of Selecting by Browsing
View 4 Replies
Apr 19, 2011
I got a combobox that I populate with items by using databinding options which works fine, but what if I only want to only select the distinct items, was trying to do that but no avail so far. if I could do that just by using an sqladapter in code but is that what I should really do ?
View 2 Replies
Apr 3, 2009
I'm running into a little problem making one combo box dependent on the selection of another combo box. I'm using a access back-end to this project. I have two tables: MajorCategoryTbl and MinorCategoryTbl , MajorCategoryTbl has PK and description field, MinorCategoryTbl has a PK, MajorID (foreign key), and description field. I have two combo boxes on my form, one that displays the Major description, and one that displays the MinorCategoryTbl description, but the stored value is the PK for both. I want the selection of the minor category combobox to depend on what was selected in the major category combobox.
View 2 Replies
Feb 14, 2010
I'm trying to search files for matches, and depending on what catagory the match is under, do a certain function... Say I have a .txt file that looks like this
[Code]...
Then I have a form with Button1 and Textbox1. Say I type "Cat" into Textbox1 and press Button1. It would then bring up a MsgBox that says "Match found under Animal catagory". But if I put "Three" in Textbox1, the messagebox would say "Found under Numbers catagory".
View 4 Replies
Apr 14, 2009
i need to generate a category report that calculates the percentage of the tickets whereby the ticketstatus are closed and opened.I have to get the percentage of opened tickets by:(number of open tickets/total number of tickets) * 100 with that, i came up with a function in the class
below is the code:
Public Function DBSelect_TicketCategoryOpen() As DataTable
Dim local_dbConn As New SqlConnection
Dim local_sqlCommand As New SqlCommand
[code]....
View 4 Replies
Sep 20, 2009
when I generate my <appname>.exe file, the summary properties fields are all empty. There must be a way I can add this, but I haven't found it yet. I am running VisualBasic .Net 2003 standard edition.b
View 10 Replies
Apr 13, 2012
Problem drawing dotted path lines, with even dots along the path line.I want to draw a path line that can be any shape (square, round, outline etc), and along this path line I want even dots to appear.
I also want to be able to resize the shape (as in the example attached)This is very easy to do using "DrawPath" and defining points for the path and using a pen defined as dots.The problem I have is I want the dots to be evenly placed along the path, on any shape or size I draw.In the example I have created, I create a square with 4 points and draw a dotted path.There are 2 buttons that allows me to resize the square (larger or smaller) this helps show the problem more clearly.
The path starts at the top left corner and finishes back at the top left corner, the dots are evenly placed along the path, except the final dots at the end of the path. (Sometimes the dots are even and other times they are not even).The shapes I want to draw can be any size and any shape, but I have used a square in this example to show the problem I have. point me in the direction I need to go that allows me to draw the dots and give the impression that they are even all along the path, for all shapes and sizes.
In the pictures below if you change the size of the shape, one will have even looking dots, the other will not.
[Code]...
View 2 Replies
Dec 7, 2010
i used the following codes:
private mediapath as string = "C:movie.avi"
private form1_loads blah blah blah
[code].....
View 7 Replies
Apr 7, 2009
I am trying to create a function to convert a mapped drive path to a UNC path. I did some googling and found several different pages on the matter. I am most interested in the first one, but I cannot seem to get the code to cooperate. Since the original post was in C#, here is my VB.NET conversion:
[Code]...
View 1 Replies
Apr 19, 2009
Let's say I have a menustrip, which has a category "Colors" for example, and in that category there is an option of 20 colors, but I want only 1 to be checked at any one time, now to do that with what I know, I'd have to check every other one of the check boxes and uncheck them in every single click event, is there no cleaner way to do this?
View 5 Replies
Jul 14, 2009
Does Visual Basic come under the "High level programming language" category?Or is it a "Low level programming language"?
View 7 Replies
May 22, 2012
I am trying to read and display a file using MapPath as follows :
Response.ContentType = "Application/pdf"
Dim FilePath As String = MapPath("../Document/123.pdf")
Response.WriteFile(FilePath)
Response.End()
This procedure will work fine and display in the browser. However, if I save the file to C:Document123.pdf, how can I access this file using relative path in MapPath function. Is there an option to access the file which is saved out of IIS server? I am using vb.net 2003.
View 1 Replies
Jun 14, 2012
I'm using acrobat that returns unix paths instead of windows path's. So im wondering if there is a way in vb.net to convert the path to windows path.
i tried using:
docs(i) = javaScriptObj.path().ToString.Replace("/", "").Substring(1)
position = docs(i).IndexOf("")
docs(i) = docs(i).Substring(0, position) + ":" + docs(i).Substring(position + 1)
this only works on local files, but fails when im starting to use network drives.
View 1 Replies
Apr 12, 2012
I want to draw a path line that can be any shape (square, round, outline etc), and along this path line I want even dots to appear. I also want to be able to resize the shape (as in the example attached) This is very easy to do using "DrawPath" and defining points for the path and using a pen defined as dots. The problem I have is I want the dots to be evenly placed along the path, on any shape or size I draw.
In the example I have created, I create a square with 4 points and draw a dotted path. There are 2 buttons that allows me to resize the square (larger or smaller) this helps show the problem more clearly. The path starts at the top left corner and finishes back at the top left corner, the dots are evenly placed along the path, except the final dots at the end of the path. (Sometimes the dots are even and other times they are not even).
The shapes I want to draw can be any size and any shape, but I have used a square in this example to show the problem I have. I need to to draw the dots and give the impression that they are even all along the path, for all shapes and sizes. [Code]
View 2 Replies
Jul 16, 2011
i get this error "Illegal character in path" when checking for a folder to see if it exists.
the folder is D:PlanificatorPlanificatorPlanificatorServerinDebugData1 and it exists.
Function IDExists(ByVal User As String)
User = User.Trim
Scrie("Se verifica existenta ID-ului " & User)
[code]....
View 1 Replies