answersLogoWhite

0

Dim x(1)

x(0) = 5

x(1) = 2

Dim NewArray(1)

For xx = 0 To x.Length -1

Dim item As Integer

item=xx-x.Length -1

item=item * -1

NewArray(xx) = x(item)

Next

Their you go at first the original array was 5,2

after you run the loop it will be 2,5.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Basic Math

How do you create a script to upload a file in PHP?

Hope your requirement is to upload a file to server . follow this code. $files=array(); $file=handleUpload($_FILES); function handleUpload($upload_file){ if(!$upload_file) return; $files=array(); $file->file_orig_name = $upload_file['name']; $file->file_size = $upload_file['size']; $path_parts = pathinfo($file->file_orig_name); $file->file_extension = strtolower($path_parts['extension']); $file->file_mime_type = $upload_file['type']; $file->file_tmp_name = $upload_file['tmp_name']; return $files; }


Where is the correct place to insert a JavaScript?

hi, This is sunil maurya . I am working with Geometric solution Bangalore... as software developer. According to java script rule we can use this language on separate file and use in the HTML code as well as we also write code in the same file and use it where needed... Thanks Sunil maurya


What is syntax in php?

We can use php tags in different ways. <?php //php code to be written here ?> OR <? //php code ?> This tag will not work when we using editors such as macromedia dreamweaver. OR < script language="php"> //php code </script>


What is the main method of starting PHP code?

When scripting in PHP, you always want to open up the script with a tag.


Php Source code for validation?

If you wish to check the syntax of your source code, you need to run the code through the PHP CLI with the -l option. There are also some online resources to validate the syntax. This will check only the syntax of your file. This will not however detect runtime errors or logic errors. You must absolutely run the script for the best possible code validation.

Related Questions

How 2 write c code of array data structure?

An example: int array [10]; yaaa this is write but for a simple programs on array and all data structure visit codingdatastructure.blogspot.com


How do you write a program that outputs a given characters in reverse?

write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)


How do you write HTML codes and javascript events together in your HTML kit?

You need to write the HTML code in the tag format. If you want to write JavaScript put it in <script> tag.


How to write a code for finding sum of left diagonals elements in an array using c plus plus?

truzi i Ghal


How do you write javascript codes for website on a mac?

You can write java script code on any platform be it mac, linux, solaris or windows. All you need is a mac version of notepad, some html page where you insert your java script code and a web browser where you view the html page. All major browsers support java script coding and all you need to do is enable the Java Script support in browsers if it is not enabled already.


How to use if statement programming in qlikview?

When using statement programming in qlikview you Open the QlikView application, Open Edit Script, Write code for the SET script statement, Save QlikView file, Sheet property Window, Select text object, Select text object, Write code of LET script statement, Sheet property Window and now you should see the LET statement.


Is an array is a collection of characters that can be fixed or variable?

No. An array is a collection of objects of any type, such as doubles, not just characters. You can even have arrays of arrays, or arrays of structs. In C, the size of an array is fixed, but it is possible to write code that will allow you to manually make it variable in size.


What element do you use to add JavaScript code to a web page and how is it structured?

To add javascript code in HTML, you have to include the script tag on top. It can be added as <script src="source of script"></script>


Print reverse string in c sharp?

To print a reverse string in C#, you can use the Array.Reverse method or LINQ. Here's a simple example using Array.Reverse: string original = "Hello, World!"; char[] charArray = original.ToCharArray(); Array.Reverse(charArray); string reversed = new string(charArray); Console.WriteLine(reversed); This code converts the string to a character array, reverses the array, and then creates a new string from the reversed array before printing it.


How do you repeatedly run a code in command prompt?

You cannot repeatedly run a code in command prompt unless you create a batch script that will repeat the codes inside it. To create a script, you must open notepad. Type :A (colon A). Then below that code, type the codes you want to repeatedly run. Below the codes, write "goto A" (without quotes). Save this script as anything you like with a .bat extension. When you click the .bat script, it will read the code. On the last line of code, it will repeat any codes that is in between :A and goto A. You can also change the "A" into anything you would like.


Where can you buy a script?

When you say script, what do you mean exactly? If you mean php or code script, you should search on seoclerk.com


Write code for an example in net?

asp.net is the serverside prograaming and ado.net feauture submit databse connectvity to sql server and asp is the script language