|
Did you follow the example to make your project?
Batch build will only appear when the solution configurations allows such an operation. Otherwise it is not visible.
|
|
|
|
|
My question is why you're using MSDE when it's no longer supported?
The current replacement would be SQL Servedr 2008 Express Edition, which is free, from here[^].
|
|
|
|
|
Hi all,
modified 28-Nov-12 7:37am.
|
|
|
|
|
You already use IndexOf("_DIA") to get the position of the first undersocre
And use LastIndexOf(".") => get the position of the dot.
And fill with (text.LastIndexOf(".") - text.IndexOf("_DIA")) blank spaces.
Hope it helps.
|
|
|
|
|
From the sounds of things there are 2 known conditions;
1) the text to remove always starts _DIA (but may have additional numbers after)
2) #1 is always followed by .PRT
If this is the case, i would
1) get the index of #1
2) get the index of #2
4) remove this substring
5) insert a substring with padded space of length = to difference of the 2 indexes at the index found at #2
|
|
|
|
|
Thanks for ur reply.
I know to find the difference, but not able to insert padded spaces of the difference.
Any help on it will be helpful.
Thanks.
|
|
|
|
|
Here is a simple function that does what you want;
Private Function fixElement(ByVal theStringToFix As String) As String
Dim theString As String = theStringToFix
Dim diaPos As Integer
Dim prtPos As Integer
diaPos = theString.IndexOf("_DIA")
prtPos = theString.IndexOf(".PRT")
If diaPos > 0 Then
Dim padString As String = String.Empty
padString = padString.PadRight(prtPos - diaPos, " ")
theString = theString.Remove(diaPos, prtPos - diaPos)
theString = theString.Insert(diaPos + 4, padString)
End If
Return theString
End Function
|
|
|
|
|
|
Don't see why not, BUT, you want to trust my function?
you had better test it to death then!
If it were me, i would be extending the function to ensure it handle 0 zero length input string and some other conditions.
I threw the function together to show you one method of achieving the text removal, and padding compensation.
Also, as it looks like this will be running many times on an input file, i would be switching the output to a stringbuilder rather than lots of "&" operations.
|
|
|
|
|
Thanks a lot for the function.
It worked great.
Thanks once again.
|
|
|
|
|
Your welcome!
And remember to use the message voting options to show your appreciation!
|
|
|
|
|
Question... why not just use the string.replace function to accomplish this? It seems like you are doing a ton of work where simply using replace with a specific pattern could get you what you want simply.
I admit that I have not taken a huge look at this problem thread, but...
|
|
|
|
|
I am using vb.net 2008
I want to take Input in a text box from other defice like
Barcode Scan or Card Swipe.
But I need to Stop Manual input from keyboard on That TextBox.
I Test in my code That in Both Cases "KeyPress Event" Called.
How Can I do that?
Textbox taken Input from Other Device and Not From Keyboard.
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
How does the scanner pass in the values to the text box?
If it is via code, then why do you need a text box at all, and use a label to display the scanner input......
|
|
|
|
|
Since most of those devices are keyboard emulators anyway (normally refered to as "keyboard wedge") you cannot disable the keyboard. You would find it extremely difficult to tell the difference between a normal keyboard key and one coming from the scanner.
You normally would not even bother with the textbox but enable the forms KeyPreview property, then handle it's KeyDown event, looking for the prefix string that is prepended to the code coming from the scanner. You ARE using pre- and post-fix codes coming from the scanner, right? If not, you'll find it impossible to tell the difference between what it typed and what is scanned.
All of the characters you see after the prefix string will be whats scanned, until you see the postfix characters. When you see the prefix code, you do NOT pass the keystrokes up the chain to the textbox.
|
|
|
|
|
Hello to All,
Actually i want to Know that how can we build our own Driver using vb.net and C#.
Is is Possible Driver Development by using Vb.net and C#.
Your Help is needed.
Thanks a Lot.
If you can think then I Can.
|
|
|
|
|
eg_Anubhava wrote: Is is Possible Driver Development by using Vb.net and C#.
No. Drivers need C/C++.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
...and the Windows Driver Kit[^].
You REALLY do NOT want to do something like that in managed code (VB.NET, C#).
|
|
|
|
|
Hello Everyone,
Finally I am at right place to get some knowledge.
In my office, I use a excel VBA tool(Macro) for opening all hyperlinks in Internet Explorer new Window.
But now we use Internet Explorer 7, which supports Tab browsing.
Could anyone please through light on how can I use OpenInNewTab and Navigate2 to add in existing code, so that when I click on button it can open all hyperlinks in single window and multiple tabs.
Would be very helpful for us to make our life easy.
Thanks
-mprathore
|
|
|
|
|
What code are you using at the moment to fire off a browser session?
|
|
|
|
|
Hi Dave,
Thanks for your reply.
I am using below mentioned code. Technicaly may be its not exact as I dont have that file with me right now..but you will get outline of it...once again thanks..hope you will find solution
Dim ie as Object
Dim i as integer
Dim web_link as string
Set IE = CreateObject("InternetExplorer.Application")
ie.visible = true
web_link = "a weblink with a no. in end"
' Actually integer I is for increment value for next link pasted in excel second row same colomn.
ie.navigate web_link
'then some code here for wait, to let the web page load.
'next IE window will open second hyperlink pasted in second row same colomn
ie.navigate web_link, "value of i(incremented)"
almost like this coding....I am sorry for not being clear about codes.
Thanks
-Mp
|
|
|
|
|
Right, i have managed to do it, but it is browser setting dependent;
I put a bunch off URLs on an excel spreadsheet, and a button pointing to the following code;
Public Sub goNav()
Dim ie as Object
Set IE = CreateObject("InternetExplorer.Application")
ie.visible = true
Dim x as integer
Dim links as Hyperlinks
Set links = ActiveSheet.Hyperlinks
For x = 1 to links.count
ie.navigate links.item(x).address,nothing, "_blank"
next
End Sub
For it to open in new tabs this setting must be set in IE settings;
Internet Options
General Tab
Tabs Settings : Settings
Always open pop-ups in a new tab = Selected
Sorry, Best I can Do!
|
|
|
|
|
How to call Javascript function in ASPX page through VBScript. I am using http stuff to get page from server, now on clicking some button on the page I am getting a popup which is not being requested through any URL. But is being called through javascript. Please see the example below:
xmlhttp.post someurl
xmlhttp.send
writetodisk(xmlhttp.responsetext)
Now in this how should i call that javascript function to handle the popup????
Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
Ash_VCPP wrote: Javascript ASPX VBScript
Which one of these is Visual Basic?
MVP 2010 - are they mad?
|
|
|
|
|
Trying to build add AJAX[^] manually?
There's no popup in the code that you presented. Can you paste the OnClick-handler of said button?
--edit--
Richard is right, this may not be the most appropriate forum for this. There's a forum specialized in webstuff, and the webgurus reside there.. Sometimes they visit this thread, sometimes they don't.
I are Troll
|
|
|
|