|
Thanks again, The errors are resolved, only the warning is still there.
Another thing, when I got two text boxes with an outcome, and I like to show another outcome in text box 3, how can I do that for this code?
//L/E Number (LifePath/Expression Bridge Number).
public static number getLEBridgeNumber(int lifePathNumber, int expressionNumber)
{
//Next we count each of the resulting digits (or Master numbers) together and reduce the total again to a single-digit.
return new number(lifePathNumber - expressionNumber);
}
When I try this it doesn't workL
LE_bridge_outcome.Text = numService.getLEBridgeNumber(Life_path_outcome.Text, Expression_outcome.Text).ToString();
|
|
|
|
|
wilcoten wrote: I like to show another outcome in text box 3, how can I do that for this code? Putting something into a textbox is very, very easy. TextBoxID.Text = whateveryouwant.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I know that, I did it for other outcomes of calculations, but with this example it doesn't work for me in the same way, but I don't know what I'm doing wrong.
|
|
|
|
|
wilcoten wrote: but with this example it doesn't work for me in the same way, We can't run your code so you need to debug it to see why it isn't doing what you want. Put a breakpoint and then step through line by line and examine your variables and controls. Debugging is very powerful.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I agree, I got this error:
Error 1 Argument 1: cannot convert from string to int"
Any suggestions for this situation?
|
|
|
|
|
wilcoten wrote: Argument 1: cannot convert from string to int"
Any suggestions for this situation? Yes, take a deep breath and slow down. Just read the error. It says you cannot convert a string to an int. And it tells you argument 1.
So, look at your function getLEBridgeNumber. It is declared to take an integer as the first argument. However, you passed in Life_path_outcome.Text and the Text property of the control is a string. So, you need to convert the string to an integer. An easy way is to simple do Convert.ToInt32(Life_path_outcome.Text). That converts whatever is in the textbox to an integer. You really want to check your input because this will fail if someone does not type a number in the textbox but for now this should work for you.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I follow your advise with this code:
LE_bridge_outcome.Text = numService.getLEBridgeNumber(Convert.ToInt32(Life_path_outcome,Text, Convert.ToInt32(Expression_outcome.Text());
This is the error:
) Expected
|
|
|
|
|
You opened four parenthesis but only closed two. You need to add two more close parenthesis at the end, right before the semicolon.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Maybe I'm dumb because I am a newby and can't fix this.
When I use for at the end as you suggest I get this errors:
Error 1 No overload for method;getLEBridgeNumber takes 1 arguments
Error 2 No overload for method ToInt32 takes 3 arguments
Error 3 System.Windows.Forms.TextBox.Tex is a propert but is used like a method
Error 4 Non-invocable member System.Windows.Forms.Control.Text cannot be used like a method.
I realy wanna learn, and I know this is not easy, but is it realy so hard, this simple code?
Thanks for your patient, Wilco
|
|
|
|
|
This is the code with the errors in the last post:
LE_bridge_outcome.Text = numService.getLEBridgeNumber(Convert.ToInt32(Life_path_outcome,Text, Convert.ToInt32(Expression_outcome.Text())));
LE_bridge_outcome.Text = numService.getLEBridgeNumber(Convert.ToInt32(Life_path_outcome,Text, Convert.ToInt32(Expression_outcome.Text)))();
It doesn't matter how I do it, the result is overload or ) Expected.
This is now very frustrating, so If you will write the right code for me, will be fine.
Programming has to be fun, even the learning proggress. It would be nice if this work before I go to bed, it is for me now 00:15
|
|
|
|
|
wilcoten wrote: ) Expected Yes, it is expected. I am glad to help and I know you are a beginner but you really have to start understanding what the compiler is telling you. You didn't close the Convert.ToInt32()
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
This is the code with the errors in the last post:
LE_bridge_outcome.Text = numService.getLEBridgeNumber(Convert.ToInt32(Life_path_outcome,Text, Convert.ToInt32(Expression_outcome.Text())));
LE_bridge_outcome.Text = numService.getLEBridgeNumber(Convert.ToInt32(Life_path_outcome,Text, Convert.ToInt32(Expression_outcome.Text)))();
It doesn't matter how I do it, the result is overload or ) Expected.
This is now very frustrating, so If you will write the right code for me, will be fine.
Programming has to be fun, even the learning proggress. It would be nice if this work before I go to bed, it is for me now 00:15
|
|
|
|
|
I see the issue. You didn't close the first Convert.ToInt32 method call.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Thank you for the private email.
No, this is a public forum, and private answers do not help others - which is the whole idea.
Plus, I receive several hundred emails every day, and don't need any more!
"The error appears when I build/start the program in visual studio."
Which means it's a a compilation error - the compiler doesn't like what you wrote.
Look at the "Error List" pane, and double click on the first error. It will take you directly to the line that it thinks you got wrong.
Look at the error message and it's normally pretty obvious what you did, but if you can;t work it out, copy and paste the error message and the line that caused it (plus half a dozen lines either side for context) and post them in a reply. Don't give us pictures, we can't try compiling a picture if we can't work it out ourselves, and don't want to type it all in!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
And that's why I have email switched off.
This space for rent
|
|
|
|
|
you see the attached image, I created one new project, I drag DataSet1 on XtraReport (Figure 1 and Figure 2), I want to added to the table into DataSet1 (Figure 3 and Figure 4). I want to add the table DataSet1 as Figure 3 and Figure 4 but it's not, how do you know to add the table as Figure 3 and Figure 4 ? http://s32.postimg.org/conkyv99x/Data_Set1a.jpg
|
|
|
|
|
First off, it's telling you to "REBUILD THE PROJECT TO SEE YOUR CHANGES".
Next, RTFD's ... The DevExpress docs / demos show how to use reports and datasets.
|
|
|
|
|
Welcome to the C# forum.
Your question is about the designer, not about C#. It is also about a commercial product; you'd have more chances at the DevExpress forum.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
1. Rebuild the project as it says down there
2. You don't seem to have mapped your data to your report
3. This is the C# forum, not the DevX forum. Try it over there.
|
|
|
|
|
You see attached image. Do you know what controls in the control image that ? when I'm not click, it's like the number 1 and when i'm click It's seemed to click select number 2, it is entitled, It's same button but it's not the same button. http://www.mediafire.com/view/4e0bfc5jtvujm0q/Controlj1.JPG
|
|
|
|
|
It looks like a menu without a header caption.
This space for rent
|
|
|
|
|
I would like to convert my ResourceDictionaries to .theme files and am currently using the following to serialize and deserialize:
I am able to serialize it this way:
using (System.IO.FileStream FileStream = System.IO.File.Create(FileName))
using (System.IO.Stream Stream = Application.GetResourceStream(new Uri(AbsolutePath, UriKind.Absolute)).Stream)
{
Stream.Seek(0, System.IO.SeekOrigin.Begin);
Stream.CopyTo(FileStream);
}
To convert back, I use:
using (System.IO.FileStream FileStream = System.IO.File.OpenRead(Path))
{
NewDictionary = (ResourceDictionary)System.Windows.Markup.XamlReader.Load(FileStream);
}
But I get an error about the first character being invalid. I know this is because I have to convert the bytes back somehow, but that's where I'm stumped.
modified 28-Apr-16 14:53pm.
|
|
|
|
|
Is it writing the Byte order mark - Wikipedia, the free encyclopedia[^] at the beginning of the file?
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G.K. Chesterton
|
|
|
|
|
I solved it! I guess all I had to do was change the build action of the .xaml files to Resource , they were originally Page .
|
|
|
|
|
Hello,
I am new to deal with Wi-fi. I want to send periodically probe request from an access point and then read all the probe response to detect all the devices in the building and can filter and build my application based on these data.
I have the permission to access all the access points and it possible also to add a hardware like wireless controller.
I was looking for a solution I found that it is possible to detect the wifi clients with an access point with a custom firmware update (e.g. Ubiquity PicoStation 2 ) and then they were able to send probe request and receive a probe response.
My question, Is it possible to do the same with already existing access points in the building
My application is academic usage.
I look forward to helping me
|
|
|
|