|
I'd like to allow my users to write code statements in array format, for instance
c = a + b
where a and b are really a() and b() arrays.
Any ideas how I could do this? I've checked math code parsers, but none of them seem to do arrays.
Thanks!
|
|
|
|
|
In what context, are you writing a library ? What are the rules for adding two arrays ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Well the math is array math, as in c++.
|
|
|
|
|
OK, I clearly need to be more specific.
I'd really like to create an intellisense-capable editor that would allow my users to write and see their errors in vb.net code. However, for a few functions, I'd like add c++ type capabilities, such as:
c = a + b
where c a and b are actually arrays.
other relevant array operators are < > = - / *
Maybe the first question should be how to implement the intellisense editor.
Thanks again.
|
|
|
|
|
Hi,
you want to define your own type (class or struct) and use operator overloading.
Look for some articles here at CodeProject on such things as complex numbers, or big integers;
that will show you the principles.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Thanks Luc. I didn't know about operator overloading -- that's exactly what I need.
What about applying vb.net intellisense in a user editor?
Any ideas on that?!
|
|
|
|
|
cstrader232 wrote: vb.net intellisense in a user editor?
Not sure I understand the question.
Inside Visual Studio Intellisense is at your service; it parses your project files and adds
class information to the system's .NET information and presents it while editing.
In a separate editor, you can do similar things; I have no idea some Intellisense component
from VS would be available to assist you in that. I trust big editors have it on their own,
you may (or may not!) want to have a look at Eclipse, the Java IDE started long ago by IBM.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Thanks Luc... very helpful.
|
|
|
|
|
i've problem in running the application using vb, i'm using visual studio 2008, then after complete my application i'm trying to run it on other computer using window xp, but the problem occur, anyone can help me why this happen and how to solve it..
|
|
|
|
|
What does 'the problem occur' mean ? What goes wrong ? Are you installing the .NET framework on the other machine ? Did you try to google your error message ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
so, it required NET framework to running?
thanks a lot for your superb helping.
|
|
|
|
|
shee_dee86 wrote: o, it required NET framework to running?
Yes, I recommend you do some reading so you have a basic idea of what the framework you're using does, and how it works.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi can someone guide me to a good tutorial on how to code an HTTP server/client in VB.net? I really don't know where to start.
Thanks.
|
|
|
|
|
|
hey, sorry, i'm not here to help you, but we are share in same problem, so next time time maybe we can help each other, maybe later can you tell about your improvemnt in this problem?
|
|
|
|
|
i need coding that once i enter any add or deduct quantity to data grid view and only the quantity only go to specific row...example like
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click<br />
With Me<br />
If .radAdd10.Checked = True Then<br />
<br />
.ProductTableAdapter.UpdatePrice(1.1, .Category_IDTextBox.Text)<br />
.ProductTableAdapter.Fill(.ComputerDataSet.Product)<br />
Else<br />
.ProductTableAdapter.UpdatePrice(0.9, .Category_IDTextBox.Text)<br />
.ProductTableAdapter.Fill(.ComputerDataSet.Product)<br />
End If<br />
End With<br />
End Sub
UPDATE Product
SET Price = Price * ?
WHERE ([Category ID] = ?)
like this update i click on rad-10 and rad+10 whole column will add together...how do i add on specific row ....thanks
|
|
|
|
|
You need to change the values of the specific row, which means you need to grab the value from that one row, and change it. If you rebind then you will change them all.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
(i'm stil student)haha..i don't understand...how to grad from datastore????can show some coding ...thanks......alots...if i'm using numericupdown to set the qty how i do it......
|
|
|
|
|
Your view has properties for items, columns and rows. So, you change a specific value by accessing that row/column and changing it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi All,
I'd like to build a video-phone, where the voice and video from my PC can be shared with some else and v.v. I'm not sure where to start. Can anyone recommend an article or other good starting place for this?
I'd like to use VB.NET or C#.NET.
Thanks!
Chuck
|
|
|
|
|
This might lead you in the right direction: CodeProject Search for WebCam[^]
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Aha! That's giving a whole lot more results than searching for "videophone". I'll have a look. THANKS!
Thanks!
Chuck
|
|
|
|
|
Hi,
I want to print a bill as follows: (Sorry it's in Dutch, but it doesn't matter for printing)
"www.uploadgeek.com/uploads456/0/factprev.jpg"
That means i want to print a logo in the upper-left corner, 5 lines of text in the upper-right corner, then print a horizontal line and above that line print "Factuur". Below that line i want to print 4 lines of text at the right AND the left.
Please help me out.
Thanks,
Zaegra
modified on Sunday, April 13, 2008 9:59 AM
|
|
|
|
|
Hi,
I don't know how you did this, but the URL is not visible in your post; it is visible
when I start a reply though, on top of the edit window I am typing in.
I haven't seen the JPG, uploadgeek seems extremely slow...
anyway, the normal way of doing print stuff is create a Control that somehow shows your
output on screen, then do the regular print operations to get that Control printed,
i.e. the OnPaint() method you create to display on screen will also be used when printing.
I tend to use a Panel, and paint all strings and images myself (with Graphics.DrawString
and Graphgics.DrawImage).
You can see a one-page printout example in my Sokoban article (it is C#, but exactly the
same stuff can be done in VB.NET).
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Hey,
That link is weird indeed, i don't know what happened.
I really don't know how to print the text and logo at the right positions on the paper. Can you give me one of your examples in Visual Basic? Here's the image again, using ImageShack now
http://img389.imageshack.us/img389/5504/factprevvu2.jpg[^]
Thanks,
Zaegra
|
|
|
|