Unable To Understand Prefix And Postfix?
Aug 6, 2011Are you familiar with prefix and postfix? I just wonder how to solve it especially if the expression is too long.
View 17 RepliesAre you familiar with prefix and postfix? I just wonder how to solve it especially if the expression is too long.
View 17 RepliesCan someone explain to me what this is doing.
[code]...
if a call to For Each starts by calling the Enumerator's MoveNext, then Current, then MoveNext, then Current, and so on until MoveNext returns a False then it exits, am i right to say that the Reset is never called?initially i thought that Reset would be called when MoveNext returns False, i tried this (a msgbox would come if it was ever called but i got no msgbox at all)
[code]...
if that's the case, what exactly is the use of the reset in an ienumerator, and is it ok to leave it empty, as such
I need to write a program that implements a basic postfix calculator. I am using GUI which has the following controls a label that indicates the most recent value entered or calculated by the calculator. a button for each digit (this is a calculator!). As the buttons are clicked, the corresponding number should be indicated in the label. a button labeled for a decimal point while entering numbers. a button labeled Enter (or something equivalent) that a user would click when they are done entering a number. This should take the number that was entered and push it into the calculator. a button labeled +/-(or something equivalent) that a user would click to negate the number at the top of the stack of numbers in the calculator. buttons labeled . These should perform the associated operations(addition, subtraction, multiplication, and division respectively) on two numbers, to be found as follows: if there is a number that the user has been typing but has not yet clicked enter for, then this (as of yet un-entered) number is one of the two numbers. The second number is the top of stack. if there has been no user number entered since the last time the enter button or other arithmetic operation button has been pressed, the two values to use should be popped from the stack.In either case, once the operation is completed, the result should be pushed back into thecalculator and displayed on the label control.a button labeled C, which should zero the label control and completely empty the stack. [code]
View 1 Repliesi need a 2 digit prefix that increments. 1 - 99.. after reaching 99 it will be 100, that what im supposed to trap. if must be a0 - a9, after then b0-b9 ...... z0-z9.
View 3 RepliesHow do I do this in Razor (VB.NET):
[Code]....
add a prefix to the SoapHeader Namespace.
The XML would look like this
<soap:Header>
<aaa:TocHeader aaa:role="ADMIN" aaa:locale="en-US" aaa:softwareName="TOC" aaa:softwareId="aaaaaaaaaaa" xsdVersion="1.0" xmlns:aaa="http://toc.schemas.testing.com/headers/2006-02-01">
<aaa:Message>
[Code]...
I need to find out about listboxes. Everything about listboxes. I need to know what code is needed for listboxes, and what their prefix is (btn, txt, etc...). I believe that I am using VB 2008.
View 4 RepliesI'm trying to force a prefix of the namespace on xmlattribute - Here is how i have defined the class[code]...
View 3 RepliesI have a 3 richtext boxs where I add each line together and output to a textbox, all is working great. But the problem I am seeing is that I paste the contents from a spreadsheet which strips off the leading 0 (zero) from a 9 digit number into the 1st RTB.What I require is that I need to read each line in the 1st RTB and if the digits are = 8 then prefix them with a 0 (zero).
View 13 Replies1 <span class='Txt9Gray'>Decisions ( </span> I'm trying to grab the '1' from this string. Before the '1' is another span, but I can't use that as a marker because it can change from page to page. Is there any regex expression that can simply grab the '1'.
The word 'Decisions' will always exist. That's my main way to find this line. Here's what I have been trying to no avail:
[Code]...
Ok so im new to the forums and welcome any advice :)I am currently encoding my media library using handbrake and find that it places the encode number followed by a "-" before each title..I would like to remove the number and dash using VB..[code]
View 4 RepliesI inherited a project that includes a dialog between two applications. One in native C++ the other in VB.NET. The protocol is such that the first 4 bytes (32 bits) of the message encodes the size. However the VB.NET side never sets these first four bytes, however it does use the .net method BeginSendTo, which accepts an argument for size. Does the BeginSendTo method automatically add the size to the beginning of the message in the form of a 4 byte int?
View 1 RepliesI have been given an old dll and the assignment of accessing it through C# .NET 3.5. I believe the dll was originally built with VB6, but am not positive. There is no documentation or source for the dll aside from an example for how to use the it in VB6. I have been able to succesfully access it through VB.NET 3.5. Example code for accessing looks like this:
myLib = CreateObject("MyLib.api")
myConnection = myLib.CreateObject("NameOfConnectionObject")
myConnection.do_something("abc")
There are several different objects that are created from the library and all of those objects have different methods. I tried using different dll reading tools, but all the export methods show up as garbage. I also tried importing the dll in visual studio, but I get an error stating the dll is not accessible and/or not a COM object or assembly. So, I only know about the methods from the old documentation which is sparse. how to access in C# and/or find out more about this mystery dll?
i cant understand what constants are.
View 3 RepliesPrivate Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
Dim d As Integer
Dim price(20) As Double ' Adjusted close price
[code]....
What is the for ... next loops in the second subroutine doing? What is the sim() array meaning?
I have a modem that I've been trying to communicate with only to discover this....went to the modem properties and queried the modem.....
AT+FCLASS = 0,1,8
AT#CLASS = ? COMMAND NOT SUPPORTED
(And I had been trying to use AT#CLASS = 8 all day).So, what does this mean?That the modem is automatically in voice mode (or will automatically choose it's own mode) and forcing it isn't necessary?Still no luck with the connection response messages either -- RING, etc.All I can do is make a call and the called number will appear in a textbox.
I am getting a build error. If I try to build again after getting this error, it will build just fine.
View 9 Replies[code] I cannot seem to understand why left & lan isn't working in the vb 2008 edition
View 2 Replieshow to understand a msakeditbox in null?
View 4 RepliesI've been trying to understand classes and objects. Yes, I'm thick headed and slow, but I made the decision to go to .Net and I am determined to improve my coding skills to be more efficient. I have spoken to Atma several times on the topic and read most of his posts concerning classes and objects, but still came away a little baffled (He's really advanced for me yet). I needed a simplistic analogy for a reference point to begin understanding. I was reading about OOP written by MikeJ in the following thread/post ...[URL] and it all started to become clear in this statement , but I would like some reassurance that I'm getting it ..."A car IS-A vehicle, while a dog HAS-A tail. The car would be an object declared as type Vehicle, while the dog would have a member that IS-A tail. However, Fido IS-A dog. The dog class is the base template for all dog objects, so when we declare Fido as a dog, Fido is an object. Since Fido IS-A dog, Fido HAS-A tail."
From this I have taken the following understanding...
Vehicle ... ' Class
Car ....... ' Object
Truck ... ' Object
Van ....... ' Object
And from that can I infer that this is true?
Dog ....... ' Class
Fido ... ' Object
Tail .. ' Member of Fido
So to apply this to a program I wrote recently that tracks Generator service...
Generator ' Would be the class
Brand X ' Would be an object
Spark Plug ' Would be a member
Gas Tank ' Would be a member
Brand Y ' Would be an object
Brand Z ' Would be an object
This statement also helped ...
""Class" and "object" are sometimes used interchangeably. However, classes describe the structure of objects, while objects are instances of classes. Each instance is an exact copy of its base class. Because an object is an "instance" of a class, the act of creating an object is called instantiation. To describe it better, a class is a blueprint, and an object is a building based on that blueprint". I can understand this (I think) and it refers to a basic template such as ..."Generator" (my class or blueprint or template) Generators have an engine, powerplant, fuel tank, etc. These are basic requirements to be a generator. (Template or Blueprint) They can differ by Brand of engine, Size of powerplant, and type of fuel used. (Based on template or blueprint) Do I have it down now? MikeJ also made this statement ..."you can't access certain types of class members from outside of the class itself." From this I assume you would need to assign a Global variable the value of the class member if you needed to use it outside of the class?
I'm just getting back into VB and was never a pro. The last environment I was in, briefly, was VB6 but spent a good amount of time coding in early VB's back to QB.I'm trying to read RSS feeds and found a nice demo reader but now I want to understand the code I'm seeing:[code]
1. Why does the demo create a new XML to read through an existing XML or is this all in memory as I can't find an actually file? Is this even needed as what I want to do is read the RSS feed, grab some info from it (Source, Title of each story, Date stamp, author and the story text) and then process that in various ways (not actually view it... I want to e-mail specific stories directly to me that fit my search criteria). Or is this just opening the XML out on the web? That would explain why sending it "test" gives me an error saying it can't find "test" in the bin folder as without an HTTP address it goes local.
2. doc.load... what check can I perform here to be certain that the data entered by the user is actually a valid feed? It should, for example, have a first line header that is reliable but is that the best method?
3. Where or how are the elements stored that I can then refer back to pull the data out I want?
4. I don't understand how this part works: navigator.Select("/rss/channel/item/title") Can someone shed some lite on the 4 pieces at the end?
5. I'm assuming the clean-up isn't really needed for e-mail but I didn't remove it as it doesn't seem to harm anything.
I have Visual Basic 2010 and also bought a book to study and practice problems. I know how to add controls and assign properties but get confused with the coding part.understand this somewhat?
Here is one problem I am working on-
Write a program to make change for an amount of money from 0-99 cents input by the user. the output of the program should show the number of coins from each denomination used to make change.
Now I know what controls i need on the windows form but I am sorta lost on the coding to make this program work.
At the following cmd.ExecuteNonQuery() line, I get the following error message: [code] I have followed the example at page [code] as closely as possible, but it does not work.Additionally, I am not sure of the syntax for the length (64) that I have for the BigInt or if it should even have a length.All of the examples that I have found in MSDN uses only parameters with character rather than numberic type. [code]
View 6 RepliesI need to be able to strip the following prefixes from product codes as you see I have included a simple query while yes the below shows me the cm im not wanting i cant use replace as it code replace any instance of cm the prefixes are held in the supplire table cross refer with the products table
prefixes are not always two chrachters for example can be TOW
SELECT * , left(prod.productcode, LEN(sup.prefix)) AS MyTrimmedColumn
FROM MSLStore1_Products prod ,supplier sup
WHERE prod.suppid = 9039 AND prod.SgpID = 171
[Code].....
"write sub prototype for a procedure whcih is named my data and has first parameter as a string which can be changed and second parameter of an integer which cannot be change"
View 3 RepliesI want to make an application that will remind me to give a break once in 45-50 minutes. But I want it to determine if I am playing a game or not at the time that I have to give break. In short, if any application is in fullscreen mode (or maybe using graphic card) I want to know. Is there anything about that in .NET?
View 12 RepliesI have created a new usercontrol. My usercontrol contains several other controls like labels, buttons and so on ...When I set the Font property of the usercontrol I want that font property value to propagate down to the child controls.
View 2 RepliesI want to make a program that generate 3 codes to a word document and adding a prefix before each code
Example:
TextBox1.Text = 355855026164242
TextBox2.Text = 40324003
TextBox3.Text = 58458844
Want these codes to go to document like this:
IMEI:355855026164242
Code1:40324003
Code2:58458844
My questions isn't really about a programming language but, since I did not find a general programming forum, I chose this one as I know VB.Net. There's this game, that you might already know, which is called Star Wars Galaxies (And is ending soon actually .. ). For each account and character, the game automatically saves chat logs in a .cht file. A player can have multiple chat channels that have different chat filters (group chat, public chat, etc) and they are all saved in this file. I'm thinking they are probably separated by some kind of a "flag" for the game to be able to detect them.
[Code]...