4,439 Posted Topics
Re: Hi Mir Mahfuz welcome to Daniweb! :) What the line does is mapping every character of your string to an index in the your count array. Say string[c] = 'b' so ('b' - 'a') will be 1 and count[1] will be incremented. Say string[c] = 'a' so ('a' - 'a') … | |
What would happen to the world if for some relatively long (say 3 months) period, we would be deprived of internet? For one thing, I would not be able to type this on DaniWeb! No more internet games. The most nearby pizza restaurant? Your cell phone won't tell you. etc. … | |
Re: @diafol: Try Belgium for a change. Here in my region, no rain whatsoever for the moment. If it continues that way this is going to look like California... Normaly the summers here are rather rainy. | |
Re: Your last method should work, are you sure you're entering the if statement? | |
Re: You could somehow "walk" through your 2 strings using the MID function. If both are numbers concat to a new string to be placed in C2. [Here is some info](http://www.exceltrick.com/formulas_macros/vba-substring-function/) about the MID and related functions. | |
Re: VB.Net can handle this just as C# can. Your explanation is a bit unclear. On line 10 by "6",do you mean "67"? The [SubString](http://www.dotnetperls.com/substring-vbnet) method of the string class can help you out here. | |
Re: Hi Iin, welcome to daniweb. :) First of all, I'm not an expert. An expert is someone who has made all the possible mistakes. I'm not even halfway... In your code, you don't seem to loop through your selected cells. Here is an [example](https://msdn.microsoft.com/en-us/library/x8x9zk5a%28v=vs.85%29.aspx) on how to do that. Hope … | |
Re: Easy ways don't exist! It helps if you got somehow a talent to be creative. | |
Re: COULD YOU STOP SHOUTING LIKE THAT!!! And tell us WHAT is not working. | |
I recently came accross this code: Mat3D R_z(double RotAngle) { const double S = sin (RotAngle); const double C = cos (RotAngle); Mat3D U; U.m_Mat[0][0] = +C; U.m_Mat[0][1] = +S; U.m_Mat[0][2] = 0.0; U.m_Mat[1][0] = -S; U.m_Mat[1][1] = +C; U.m_Mat[1][2] = 0.0; U.m_Mat[2][0] = 0.0; U.m_Mat[2][1] = 0.0; U.m_Mat[2][2] = … | |
![]() | |
Re: Nice. But it feels like:"Been there, done that..". Change some syntax and some extras, '*et voilà *' a new language is born. | |
Re: Google! Plenty to find: [example](http://www.visual-basic-tutorials.com/WriteToExcel2007.php). | |
Re: We don't do homework. Show us first what you have even if it's faulty, that doesn't matter. Then we will help. | |
Re: It's a possibility that VS2015 has something to do with it. Did you try a reinstall of [SQLite](https://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki)? | |
Re: Try this macro on a new sheet and see what happens: Dim i As Integer For i = 1 To 10 Cells(i, 1).Value = i * 5 Next i | |
Re: Looks a bit like the `struct` in C#. Do you happen to know if the Swift struct is a value type? Or is it also a reference type like a class? | |
Re: On agreement, I will provide you my bank account number. After deposit of 100000$, I will immediatley give you what you asked for. On the other end, you could show some effort(which you should!), and show us your code and what precisely you're having trouble with. We will help you … | |
Re: To loop through individual excel cells, use the `Cells` property. See [here](https://msdn.microsoft.com/en-us/library/office/aa221540%28v=office.11%29.aspx) how to adress excel cells. | |
Re: You are creating a new Form2 every time you click your button. | |
Re: Distilling fruit juice? I guess the distilate would taste like a watery sugarless mess... | |
Re: To add to the comment of Gribouillis: to convert from degrees to radians use `math.pi/180` For an angle of 90° that would give Math.pi/2. | |
Re: As a variation use the formula of Binet. This [link](https://www.daniweb.com/software-development/csharp/code/455852/fibonacci-in-c) is in C#, but you'll find your way to it. | |
Re: Add a label to your Form2. | |
Re: Your `GetPeople` method returns an array of `Person` objects. If you want to get, say a persons last name of the second person in the array, you use `Person[1].LastName`. | |
Re: If you don't specify what the problem is, how should we know? We have no time to wade through your code to find the problem, so please tell us what the problem is. | |
Hi all, I need to obtain the fractional part of a double. AFAIK C# and .NET has no such function. Have a few options here:(x is a double) `x - (int)x` `x - Math.Truncate(x)` Convert to a string and extract the fraction... Perhaps someone knows other options? Which should I … | |
Re: When Steve Jobs left Apple (for a while) in 1985, he started a new compagny NeXT. They developed a new OS called [NeXTStep](https://en.wikipedia.org/wiki/NeXTSTEP). Hence NS. This OS was mostly written in Objective C. | |
Re: Bach and inparticular the 6 cello suites. This must be music from another world. I like other music also, in particular if it's good music. | |
Hi all. Would it be a good idea to have a polar coordinate class and derive from it spherical and cylindrical coordinate classes? Or should I keep 3 separate classes? | |
Re: I guess it must be there. I'm not seem to find it on the net. Has Swift some library to use UI elements like comboboxes, datagrids etc.? | |
Re: Could you elaborate on what exactly you mean by a "*pair*" and a "*pair that links*"? | |
Re: Hi, We cannot and will not help you with your assignment if you don't show us the efforts you already have made. Read the rules of this site below this page. | |
Re: Maybe [this](http://csharp.net-informations.com/excel/csharp-read-excel.htm) can serve as a guide. | |
Sometimes, when I have really, really nothing else to do, I start doodling with some code. Wanted to display the coordinates of the mouse pointer. Thought it was complicated, but it was rather easy. Look, starting at line 94. Then: why not explore a [Bezier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve), and what if I … | |
Re: Your monthcalendar would be a ToolStrip item like any other I guess. | |
Re: A `Computer` is a `Player` with some extras I assume. `CurrentPlayer` is a `Player`, not a `Computer`. | |
Re: The elephant is the only mammal that is not able to jump. | |
Re: What list of objects do you have? Is it a list of all the same object, as Dave suggests or doesyour list contains different objects? | |
| |
Re: ? They are allready on the heap when they go out of scope. Any code would perhaps help. | |
Re: Is there any special raison to implement your own current time, when this functionality already exists? [Example](http://www.dotnetperls.com/datetime-now). | |
Re: Of course privacy is important.Certainly in certain places in my home. But when I go out I'm in public, what can be private about someone taking my picture? They may further note in their notebooks, that I'm at the market on that hour and that day, if that so pleases … | |
Re: As exponentiation is repeated multiplication, so is multiplication repeated addition. In programming, when you have to do repeated things, you can use a loop structure(e.g. a for loop) |
The End.