Results 1 to 19 of 19

Thread: To declare or not to declare

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    BoardCoder
    Licensed Coder
    VBAX Expert mark007's Avatar
    Joined
    May 2004
    Location
    Leeds, UK
    Posts
    620
    Location
    Surely you all have 'Require variable declaration' ticked to force it!


    Dim ImportantValue as string
    ImportantValue="Important"
    If ImpotantValue="" then
        Msgbox "Why have I spent hours debugging this code to find out why this message keeps appearing?"
    end if
    Last edited by Aussiebear; 05-07-2025 at 12:49 PM.
    "Computers are useless. They can only give you answers." - Pablo Picasso
    Mark Rowlinson FIA | The Code Net

Tags for this Thread

Posting Permissions

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