Ditutup

VB Math Operators

I am relatively new to VB scripting. Can anybody tell me where I've gone wrong in the following coding ? When I try and run this from my server (hosted with [url removed, login to view]) I get a "mismatch" error message in the line: R(75)=Q(75)*2.

The script picks up the value of [url removed, login to view] for P(75) from the MYSQL database but will not double the value and return it to the webpage.

When I remove the " *2 " from the code it will correctly return the value [url removed, login to view] for R(75). Furthermore, when I leave the " *2 " in but change the preceeding line from: "Q(75)=P(75)" to: "Q(75)=22.75", it will correctly return the value of 45.5 for R(75).

HELP PLEASE, this is relatively simple coding, where am I going wrong? I have selected the "very small project ($30-250)" budget range but, since this must surely be something very elementary that I have overlooked, I am expecting a fix that costs me less than $30. Thanks. John.

<%@LANGUAGE="VBSCRIPT" %> <% [url removed, login to view] = true %>

<%

Set objConnection = [url removed, login to view]("ADODB.Connection")

[url removed, login to view] "DRIVER={MySQL ODBC [url removed, login to view] Driver}; UID=MyPrices; PASSWORD=******; DATABASE=MyPrices; SERVER=p41mysql13.secureserver.net"

Set RS = [url removed, login to view]("ADODB.Recordset")

Set RS = [url removed, login to view]("SELECT * from Prices")

%>

<%

Dim i

Dim P(1000)

Dim Q(1000)

Dim R (1000)

i=1

for each x in [url removed, login to view]

P(i) = [url removed, login to view]

i = i + 1

next

[url removed, login to view]

%>

<%

[url removed, login to view]

set rs=nothing

[url removed, login to view]

set objConnection=nothing

%>

<html>

<head>

<title>BIDET OLE, INC.</title>

<meta name="revisit-after" content="7 Days">

<meta name="description" content="A toilet bidet">

<meta name="keywords" content="bidet, washlet">

<meta http-equiv="Content-Language" content="en-us">

<meta name="GENERATOR" content="Microsoft FrontPage 5.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<meta name="robots" content="index,follow">

<meta name="verify-v1" content="Qn8wju5hQ6gJ8IL9bqPMlq55VZ+rFIpfcB8jxYItXD0=" />

<meta HTTP-EQUIV="expires" CONTENT="0">

<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">

<meta HTTP-EQUIV="Cache-Control" CONTENT="0">

<link rel="stylesheet" type="text/css" media="screen"

</head>

<body>

<%

Q(75)=P(75)

R(75)=Q(75)*2

%>

<%= R(75) %>

</body>

</html>

Kemahiran: ASP, Memasang Skrip, Visual Basic, Reka Bentuk Laman Web

Lihat lebih lanjut: math operators, vbscript math operators, math operator, math operations visual basic, visual basic math operators, vbscript math operator, vbscript math, math operations, visual basic math operator, visual basic math operation, vbscript math operations, visual basic fix operator, vb6 math operator, operators, mathematical operators vba, webpage language, vb this, net cache, server scripting language, media math, line coding, html script editor, hosted html, driver select, dim math operator

Tentang Majikan:
( 0 ulasan ) Ocala, United States

ID Projek: #338217

14 pekerja bebas membida secara purata $38 untuk pekerjaan ini

shmai

have a glance at PM. Regards,

$146 USD dalam 3 hari
(200 Ulasan)
7.1
yugolancer

I can give you solution in a minute.

$30 USD dalam 0 hari
(51 Ulasan)
6.4
djain01

Hi, Very easy to do. check pmb. Thanks. djain01

$30 USD dalam 0 hari
(55 Ulasan)
5.4
rshyethmusthafa

I can do this

$30 USD dalam sehari
(36 Ulasan)
5.1
crajeshbe

Please check PM For Rate. Ill give you solution within a min. Regards C.Rajesh B.E

$30 USD dalam 0 hari
(31 Ulasan)
4.9
zhuzhaohua

it is very easy, i think. please check your pmb for details, thank you very much.

$30 USD dalam 0 hari
(7 Ulasan)
3.7
BuraqIS

*************** Error Fixed *************** please look at PM for FIX, we are giving you solution without your selection and having faith you choose us as winner. Buraq Integrated Solutions

$30 USD dalam sehari
(1 Ulasan)
3.3
yousafasad

Your issue can be resolved within seconds if you allow me to do so. Please read my message in PM

$30 USD dalam 0 hari
(2 Ulasan)
2.2
Agvilon

hello. it can be made.

$30 USD dalam sehari
(2 Ulasan)
2.0
vramusg

I have fixed ur error...Please kindly view ur PMB for ur solution...

$31 USD dalam sehari
(2 Ulasan)
1.9
Chetan2075

its a mistake in single line in your for next loop........

$30 USD dalam 0 hari
(2 Ulasan)
0.0
bucklemyshoe

I can explain your error very simply and will also give you a three line function to use wherever this error takes place.

$30 USD dalam 0 hari
(0 Ulasan)
0.0
lekolek

dear sir. i think i know the problem, you can check PM to find it out :)

$30 USD dalam 0 hari
(0 Ulasan)
0.0
farhankhalid

Professional Work

$30 USD dalam sehari
(0 Ulasan)
0.0