Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Computer system

Rating
-
Sold
-
Pages
33
Uploaded on
24-07-2023
Written in
2017/2018

Computer system, computer science, computer language

Institution
Course

Content preview

Syntax Considerations
H All Functions are Global in VB
H Variables are declared using the syntax:
– Dim <Name> As <Type>
– Every variable must have a type
– Dim A,B,C As <Type> will work, but gives
weird results
H Most Common Types: Integer, String, Long

,Alternative Methods
H Some Versions of VB do not allow DLL
function definitions in the (general) section
of a form.
H To Get Around this Problem, Create a new
Module (File Menu)
H Add the declarations to the (general) section
of the module
H You can add your own VB functions to the
(general) section of a form or a module.

,A (Very Annoying) Problem
H It is sometimes difficult for VB to FIND the
.DLL file.
H If this occurs, copy the .DLL file to the
WINDOWS directory.
H Remember to Delete the file when you are
done.

, C Definition vs. VB Definition
C:
long FAR PASCAL _export HexToLong (char *Hex)



VB:
Declare Function HexToLong Lib “FIRSTONE.DLL”
(ByVal InString As String) As Long


Function Name Must Be The Same in Both Declarations.
The Lib keyword Must Give The Name of the Library.
Argument Name in VB is arbitrary.

Written for

Study Level
Examinator
Subject
Unit

Document information

Uploaded on
July 24, 2023
Number of pages
33
Written in
2017/2018
Type
Class notes
Professor(s)
Prof
Contains
All classes

Subjects

$10.97
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
akhilagouri

Get to know the seller

Seller avatar
akhilagouri A Level Notes
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
107
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions