473,769 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

From VB.NET to Delphi7 convert.

Hello. I have a question, did someone can convert from VB.NET source
code to Delphi7 code?

Dim n, x As Double
Dim tab() As Double = {-3, 0.5, -0.05}
-------------------------------------------------
Sub licz()
Dim i As Integer
x = 0
For i = 0 To 2
x = x * n + tab(2 - i)
Next
End Sub
--------------------------------------------------

I really don't understand how convert
[code:1:7020b1dc b8]
Dim tab() As Double = {-3, 0.5, -0.05}
[/code:1:7020b1dc b8]
to Delphi7 :(
Please, help me!
Posted at: http://www.groupsrv.co m

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 21 '05 #1
2 1804
Hi,

Take a look at babbelfisken.
http://web.telia.com/~u31115556/desc/programs.htm

Ken
---------------------------
"Piterek" <pi*****@o2-dot-pl.no-spam.invalid> wrote in message
news:42******** **@127.0.0.1...
Hello. I have a question, did someone can convert from VB.NET source
code to Delphi7 code?

Dim n, x As Double
Dim tab() As Double = {-3, 0.5, -0.05}
-------------------------------------------------
Sub licz()
Dim i As Integer
x = 0
For i = 0 To 2
x = x * n + tab(2 - i)
Next
End Sub
--------------------------------------------------

I really don't understand how convert
[code:1:7020b1dc b8]
Dim tab() As Double = {-3, 0.5, -0.05}
[/code:1:7020b1dc b8]
to Delphi7 :(
Please, help me!
Posted at: http://www.groupsrv.co m

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 21 '05 #2
On 25 Mar 2005 15:36:14 -0600, pi*****@o2-dot-pl.no-spam.invalid
(Piterek) wrote:
Hello. I have a question, did someone can convert from VB.NET source
code to Delphi7 code?

Dim n, x As Double
Dim tab() As Double = {-3, 0.5, -0.05}
VAR
n,x : Integer;
tab : array of Integer = (-3,0.5,-0.05);

Procedure licz;

Var
I : Integer;
Begin
X := 0;
for i := 0 to 2 do
x::= x * n + tab[2-i];
End;

It is years since I programmed in Pascal, so the filling of the array
may be wrong and also the use of Global variables is frowned in the
Pascal world;

Doug Taylor
-------------------------------------------------
Sub licz()
Dim i As Integer
x = 0
For i = 0 To 2
x = x * n + tab(2 - i)
Next
End Sub
--------------------------------------------------

I really don't understand how convert
[code:1:7020b1dc b8]
Dim tab() As Double = {-3, 0.5, -0.05}
[/code:1:7020b1dc b8]
to Delphi7 :(
Please, help me!
Posted at: http://www.groupsrv.co m

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
18536
by: Cally | last post by:
Hello, I would like to convert a field from ntext field found in one database table to float field found in another database table. The reason why I want to do this is a long one. I have tried the following and playing around with the following: declare @valuePointer varbinary(16)
21
3989
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does nothing in IE. I'd be greatful for any assistance. Also, if I will have problems the code on Opera or Safari, I'd appreciate any pointers--I don't have a Mac to test Safari. THanks very much, Michael
1
5400
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved completely/succsessfully on the client's computer before updating some metadata on the server (file downloaded date for instance) However, All examples i have tried, and all examples I have found that other people says works - doesn't work for me :-(
6
17205
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically, process and output to the screen in my application when a message arrived. But the problem is how do I read the SMS message immediately when it arrived without my handphone BeEPINg for new message ? I read up the AT commands, but when getting down...
0
355
by: Alex | last post by:
I have wse enabled service on a server and making Delphi application using SOAP to access this service. I stuck with WSE security...always getting error like System.Web.Services.Protocols.SoapExeption: Server was unable to process request --> System.NullReferenceException: Object reference not set to an instance of am object. at ....Web.NSNewsReader.CheckRequest(String&userName) at ....Web.NSNewsReader.CheckUser()
15
5075
by: Asaf | last post by:
Hi, I have received a source code project written in C++ VS.NET 2003 on .NET 1.1 that compiles without a problem. I have opened this source code in VS.NET 2005 and the Log wizard says that Errors 0 and Warnings 0. When trying to recompile the project I have received these errors:
1
6124
by: Anonieko | last post by:
Here are some of the approaches. 1. Transform DataGrid http://www.dotnetjohn.com/articles.aspx?articleid=36 3. Use the Export approach http://www.aspnetpro.com/NewsletterArticle/2003/09/asp200309so_l/asp200309so_l.asp
1
2603
by: Santosh | last post by:
Dear All i am writting a code sending mail with attachement. i am writting code for sending mail in one page and code for attaching a file in the next page. aftet attaching a file i am taking name of that file from attaching file page to email page through in session file .i am giving a facility of attaching five files to user . and i am taking names of both files in session variables but user attach less than five five
6
4344
by: aznimah | last post by:
hi, i'm work on image comparison. i'm using the similarity measurement which i need to: 1) convert the image into the binary form since the algorithm that i've use works with binary data for the computation 2) compare the string binary data to get the similarity or dissimilarity result. The problem is, i already done with the image (jpg) conversion to binary and also try the algorithm structure in C# language, but i having a problem to...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10212
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10047
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.