Results 1 to 7 of 7

Thread: [RESOLVED] Extreme Novice Problems

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    6

    Resolved [RESOLVED] Extreme Novice Problems

    Hey i am a extreme novice in Visual Basic and have done only basic things like Calculator and ETC. well i have a exame tomorow and want your help on following:-

    --->what is MID function? what is its syntax? give eg:
    --->what is INPUTBOX function? what is its syntax? give eg:
    --->what are DATA TYPES? name each of them with syntax.
    --->what is IF THEN ELSE? give syntax.
    --->what are FUNCTIONS AND OPERATORS? name each of them with eg and syntax
    --->what are LOOP STRUCTURES? (EXTREME NOVICE GUIDE FOR IT)...

    can you guys help me?????


    c ya
    chao

    regards,
    readermaniax

  2. #2
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Extreme Novice Problems

    don't have any VB book with you? these are really common stuff which you should know before starting to work on any language. so please buy a good book and start learning today.
    what is MID function? what is its syntax? give eg:
    Mid or Mid$ are String function which extract a substring from the middle of the source string.

    syntax = Mid(Sourcestring, Start, optional Length)
    example:
    VB Code:
    1. Text = "123456789"
    2. Print Mid$(text, 3, 4)       ' Displays "3456"
    what is INPUTBOX function? what is its syntax? give eg:
    inputbox is also a String function which prompts user to enter string in a new Dialog box. it returns a String.

    example:
    VB Code:
    1. Dim iStr As String
    2. iStr = InputBox("Prompt Message", ["Title of the Box"],[])'actually its syntax includes many optional parameters
    what is IF THEN ELSE? give syntax.
    this is a Decision Control Structure to implement a block of statements depending on certain condition(s).

    syntax:
    VB Code:
    1. if [i]condition[/i] Then
    2. [i]statements[/i]
    3. End If
    4. ' another with Else
    5. if [i]condition[/i] Then
    6. [i]statements 1[/i]
    7. Else
    8. [i]statements 2[/i]
    example:
    VB Code:
    1. Dim num as Integer: num = 5
    2. if num = 10 Then
    3. Print "Yes"
    4. Else
    5. Print "No"
    what are LOOP STRUCTURES? (EXTREME NOVICE GUIDE FOR IT)
    Loop structures like For, While, Do-While, Do-Until etc involves repeating some portion of the program either a specified number of times or until a particular condition is specified.

    Syntax & example:
    VB Code:
    1. 'FOR Loop
    2. dim i As integer
    3. For i = 1 to 10
    4.   Print i
    5. Next i
    6.  
    7. 'While loop
    8. i = 0
    9. While i < 10
    10.    print i
    11.    i = i +1
    12. Wend
    13.  
    14. 'Do-while
    15. i=0
    16. Do
    17.   Print i
    18.   i = i + 1
    19. Loop While i < 10
    what are FUNCTIONS AND OPERATORS? name each of them with eg and syntax
    sounds confusing. what kind of functions?? functions can be native (like Mid in your example) or may be programmer-made.

    and you cannot name all native functions of VB, its a huge list and you need an extremely good book to take a look at all of them.
    what are DATA TYPES? name each of them with syntax.
    Again a very big question, and will need a good book. just for getting started, there are few Data types (from my head), namely:

    Code:
    Integer     - holding integer values from -32768 to +32767
    Long        - holding integer values from -2147483648 to +2147483647
    Single      - holding real values from -3.4 E38 to +3.4 E38
    Double      - holding real values from -1.7 E308 to +1.7 E308
    String      - Holding all keyboard stuff within " " (quoattion marks)
    Currency    - can hold vary large data (numeric)(i have no idea).
    Variant     - this can hold any type of data and a large amount of data
    Hope it helped you a bit.

    Harsh Gupta
    Last edited by Harsh Gupta; Jan 29th, 2006 at 05:26 AM.
    Show Appreciation. Rate Posts.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Extreme Novice Problems

    Moved to General Developer

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    6

    Re: Extreme Novice Problems

    [b]thanx Harsh For The Fast Responese........i Really Thank You...
    Last edited by readermaniax; Jan 31st, 2006 at 01:05 PM.

  5. #5
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Extreme Novice Problems

    who's VISHAL?? :/
    Show Appreciation. Rate Posts.

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Extreme Novice Problems

    Quote Originally Posted by Harsh Gupta
    who's VISHAL?? :/
    Your evil twin perhaps?

  7. #7
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Extreme Novice Problems

    Quote Originally Posted by Hack
    Your evil twin perhaps?
    maybe
    Show Appreciation. Rate Posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width