Solved

Convert

Posted on 1998-09-29
1
587 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
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now