Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    mex
    mex is offline
    Regular Coder
    Join Date
    Jul 2003
    Location
    somewhere
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Visual Basic extreme newbie

    I need some help using Visual Basic 6 and some codes which i dwnloaded from the net!! i can figure out as to how to use them!! can anyone let me know a site which can give a total tutorial for a newbie like me... I got plenty of sites giving tutorials but i just can't undertand them...

    I have codes like :

    ---------------------------
    Attribute VB_Name = "CutPaste"
    Option Explicit

    '*************************************************************************
    '* Function: CutCopyPaste(DoWhat As Integer)
    '*
    '*
    '*************************************************************************
    '* Description: This sub processes the cut, copy and paste commands.
    '*
    '*
    '*************************************************************************
    '* Parameters: 0=cut, 1=copy, 2=paste, 3=delete
    '*
    '*************************************************************************
    '* Notes:
    '*
    '*************************************************************************
    '* Returns: Nothing
    '*************************************************************************
    Sub CutCopyPaste(DoWhat As Integer)
    ' ActiveForm refers to the active form in the MDI form.
    If TypeOf Screen.ActiveControl Is TextBox Then
    Select Case DoWhat
    Case 0 ' Cut.
    ' Copy selected text to Clipboard.
    Clipboard.SetText Screen.ActiveControl.SelText
    ' Delete selected text.
    Screen.ActiveControl.SelText = ""
    Case 1 ' Copy.
    ' Copy selected text to Clipboard.
    Clipboard.SetText Screen.ActiveControl.SelText
    Case 2 ' Paste.
    ' Put Clipboard text in text box.
    Screen.ActiveControl.SelText = Clipboard.GetText()
    Case 3 ' Delete.
    ' Delete selected text.
    Screen.ActiveControl.SelText = ""
    End Select
    End If
    End Sub

    ------------------------------------------

    whenever i click the file it opens the Visual Studio but can't be don anything to it... I know i'm missing a lot of things ... where can i learn this language? thanx
    Wonder

  • #2
    Regular Coder
    Join Date
    Oct 2004
    Location
    England
    Posts
    282
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This looks like pseudocode to me although i've never programmed in VB. If you want to learn the language then buy a book on it. It's best to learn the programming principles along with the language if you don't already know.

  • #3
    Regular Coder
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    217
    Thanks
    0
    Thanked 1 Time in 1 Post
    VB pretty much the same as pseudocode

  • #4
    Regular Coder
    Join Date
    Oct 2004
    Location
    In front of this computer. (Where else?)
    Posts
    442
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey go get a good VB book. You'll learn better
    Tomorrow is the first day of the rest of your life... What have you done today?
    Tutorials
    Web: w3schools, htmldog General tips: Hardware, Networking

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts
    Hey mex,

    if you are having trouble with online tutorials then books will be the same- have you considered a part time course?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •