Solved

Convert

Posted on 1998-09-29
1
591 Views
Last Modified: 2013-12-25
I need to convert a variable from a varchar to an int. I am requesting a username from a website. this username is actually a number. It needs
    to be checked against the SQL table which stores the username as an Int. What would the syntax be. This is what I tried, but failed.

    User = Convert("Individual","Username",SQL_Int)

    Todd Yolish
0
Comment
Question by:yolish
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
MasseyM earned 50 total points
ID: 1855336
Use:

User = CInt(Username)

where Username is the number in Char format and User will be ne number in Integer format.  This example is in VBScript.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Company website 6 50
How to make a good PHP + MySQL + JS pagination system? 3 67
compare date to getdate() 8 17
.CSS HTML Help 3 28
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question