answersLogoWhite

0


Best Answer

Val() function is used in Visual Basic 6.0 to convert a string to a numeric value (such as integer, double etc.) or to extract a numeric value out of a string, as illustrated below.

Val function as used to convert a string to a numeric value

for example, let str be a string,

Dim str as string

Dim int as integer

str="09090"

int=val(str)

gives int = 9090

also, used to extract the numeric part out of a following string,

ie. a=val("98ASR_tyui") would give a=98

however,

b=val("The89")

would give b=0 as there is no numeric value preceding the string.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the puporse of using Val function in Visual basic 6.0?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a visual basic code?

Visual Basic code is a program or library that has been written using the Microsoft Visual Basic programming language.


Thesis topic using visual basic programming language?

visual basic thesis topics


How do you visual basic?

I think you mean how do you work visual basic. Anyways, it is a programming language developed by Microsoft using a type of basic language. I would go to a site that will teach you vb (visual basic)


How do you publish you visual basic 2008 programs on the internet?

how can i summit a solution project using visual basic 2008 through the internet


How do you basic?

I think you mean how do you work visual basic. Anyways, it is a programming language developed by Microsoft using a type of basic language. I would go to a site that will teach you vb (visual basic)


Why vb is called vb?

VB stands for Visual Basic. It is named as such because it is a programming language developed by Microsoft with a focus on providing a visual environment for the development of Windows applications.


How can you build a program using visual basic?

Download Visual Basic, Then Go Watch Tutorials on youtube or something, you'll learn over time, at least I did,


What has the author Elisabeth Boonin written?

Elisabeth Boonin has written: 'Using Excel Visual Basic for applications' -- subject(s): BASIC (Computer program language), Microsoft Visual Basic for applications


Mini project in newspaper management using visual basic language?

yes


Project in college admission system using visual basic 6.0?

yes


Is visual basic a GUI operating system?

Visual basic is not a GUI operating system. In fact it is not even an OS. It is just a platform to develop GUI software for windows using BASIC-like programming syntax.


Project in college admission system using visual basic language?

hurryjust simle analysis all about sytemggsgsgggsgsggsgsgsgsgsgsgsgsggsggsgsggsggggg