|
Yes but the power shell syntax is so harddy for a little user...
and it must work on server from 2k3 to 2k16 and the same in linux.
|
|
|
|
|
And?
Get to learning Powershell.
It works on all current versions of Windows and there's a version for Linux too.
|
|
|
|
|
hello thanks but powershell is not for my enduser the syntax is too difficult .
i'm looging vor a language with
var
for next
if then else
while wend
ant the possibility to add my own functions
|
|
|
|
|
Well Powershell has all those features.
|
|
|
|
|
You don't have much choice.
Rolling your own language/interpreter/debugger is going to take you quite a long time to develop. On top of that, YOU will be the only source of support for the customers on the language.
|
|
|
|
|
it for this reason , i'm looking for a pattern to do it?
|
|
|
|
|
Pattern? To do what?
This is purely research and learning right now.
|
|
|
|
|
You could write the Powershell scripts for your clients much faster than you could create this application.
|
|
|
|
|
Basically I have a program what opens .spl's for images for a game and it's made in c#, some of the .spls open but most are causing this error below. I can upload the source if needed and willing to pay some cash if it can be fixed.
https:
Source client - also has 4 images from the games i'm trying to use, 2 work (man000000.spl) & (00011100.spl) and 2 that cause the error (00011000.spl) & 00011101.spl
Source program -
https://easyupload.io/i8lo8c
Cheers,
P
|
|
|
|
|
sorry, it sound's like you need RentACoder or such - we don't do that here - if people show is problem(s) with code, what they expect, how they tried, then we'll try to nudge them in the right direction - we don't do homework or code for hire
|
|
|
|
|
Look at the first two message which show: "ArgumentOutOfRangeException" on a List index. So you are passing a list item index which is either less than zero, or greater than the number of items minus one, in your list. Go to the point in your code that makes the call and you should be able to see why.
|
|
|
|
|
I have a problem, I have two applications, a windows form and a webservice, the webservice code is on a server with IIS. I downloaded remote debbuger 2019 and after installing it I tried to connect the webservice project through a new instance and in the remote debugger panel it tells me that I am connected.
Then I go to my windows form application and start debugging but when I enter the webservice method it doesn't move the debug to the other application as I would have expected, and it times out.
What am I doing wrong?
|
|
|
|
|
Start a second instance of Visual Studio and attach the debugger to the remote process.
You then have two instances of Visual Studio. One debugging the local app and the other debugging the remote app.
|
|
|
|
|
thank you for the answer, then I opened a new instance and connected the webservice to the remote debugger, then I started a second instance of the windows application, when I get to the point where I call the webservice and I press f11 to enter the webservice method, it tells me to connect the process, I do it but then it tells me that a debug has already started.
|
|
|
|
|
I am trying to figure out how to handle the situation where a decimal is inserted into a text box as the only character.
If I clear the textbox and begin inserting a value without starting with a 0, (Say I want 0.0086, but start to type .0086) I get the error:
System.FormatException: 'Input string was not in a correct format.'
as soon as the decimal is typed. I used something like:
if (tbAI0LineSlope.Text.Length == 0 & tbAI0Offset.Text.Length == 0)
to handle empty box, but not sure how to deal with the decimal issue.
float test1 = 1;
float test2 = 0;
if (tbAI0LineSlope.Text.Length == 0 & tbAI0Offset.Text.Length == 0)
{
tbAI0Val.Text = (iData[7] * test1 + test2).ToString();
}
else if (tbAI0Offset.Text.Length == 0)
{
tbAI0Val.Text = (iData[7] * float.Parse(tbAI0LineSlope.Text) + test2).ToString();
}
else if (tbAI0LineSlope.Text.Length == 0)
{
tbAI0Val.Text = (iData[7] * test1 + int.Parse(tbAI0Offset.Text)).ToString();
}
else
{
tbAI0Val.Text = (iData[7] * float.Parse(tbAI0LineSlope.Text) +
int.Parse(tbAI0Offset.Text)).ToString();
}
|
|
|
|
|
Simple: & is not a logical operator, it's a binary operator.
As such it has a different operator precedence and it's trying to do a binary AND between an i nteger and a string...
Change
if (tbAI0LineSlope.Text.Length == 0 & tbAI0Offset.Text.Length == 0) to a logical AND:
if (tbAI0LineSlope.Text.Length == 0 && tbAI0Offset.Text.Length == 0) And see what happens.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You could simplify that code and make it easier to debug:
float test1 = 1;
int test2 = 0;
if (tbAI0LineSlope.Text.Length > 0)
{
if (!Float.TryParse(tbAI0LineSlope.Text, out test1))
{
}
}
if (tbAI0Offset.Text.Length > 0)
{
if (!Int.TryParse(tbAI0Offset.Text, out test2))
{
}
}
float test3 = iData[7] * test1 + test2;
tbAI0Val.Text = test3.ToString();
|
|
|
|
|
Sorry, new to the format, but Richard's solution worked perfectly for me. I did try to use && at first, but I still got the exception at the same line when I tried to run. I don't see the way to mark Richard's suggestion as the solution.
Thank you!!
|
|
|
|
|
Member 14872128 wrote: don't see the way to mark Richard's suggestion as the solution. You cannot do so in these forums. But don't worry about it, your comments are enough. Good luck with the rest of your programming.
|
|
|
|
|
Hi,
Good day, I need some assistane to generate auto testcases generation in .Net.
For example let's talk about simple employee screen that allows admin to add/delete/read/update
the employee details. Here add/delete/update/read all four methods.
Now my requirement is to develop some utility that will automatically generate test cases for the above four methods.
Also utility can easily plug-in to any other projects.
Please share URL's or any details on the creation of auto test cases.
Note :- Testcases should generate automatically something IntelliTest
Thanks All
|
|
|
|
|
Hi
You've stated a few requirements though without enough information to help with anything concrete. Any answers given on the basis of this are likely to be equally vague to the point I doubt anyone will actually answer as it won't be helpful.
If you want help I suggest you take a look at the How to get an answer to your question sticky at the top of the forum. It's generally good advice, mostly the point about being specific. Closely related to this is adding what you have tried - it provides a starting point to discuss what you are having problems with at the very least.
|
|
|
|
|
Wow, you wrote that like we are biding on your job, or we are a member of your programming staff.
So lets talk about this simple CRUD module ...
Simply write code to perform your unit testing of your CRUD operations!
Or write code to simulate multiple scenarios like real time use of the application.
Automatically generate test scenarios?
I think it would be faster to just write code, than to setup an automated test.
I can't see how an automated test would produce a test of durability, reliability and speed for a CRUD operation.
CRUD is so simple in design, and requires very few lines of code if planned correctly.
Unit Testing Tutorial: 6 Best Practices to Get Up To Speed
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
Any test that has been automatically generated has no value at all.
|
|
|
|
|
A master plan for your commercial project, in other words. People pay for that information.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Hi All,
For one of the projects, we need to have the functionality to manage different versions of the documents. I am just wondering if there is an application with which we can integrate instead of re-inventing the wheel. Git like system would be ideal.
Thanks
|
|
|
|