Loading ...
Sorry, an error occurred while loading the content.

loadbmp

Expand Messages
  • Kenneth J. Lewis, Sr.
    When using the loadbmp command in LB v2+, as long as I use a string with letters in it for the name I have no problem. When I use a numeric only string I get
    Message 1 of 3 , Apr 7, 2001
    • 0 Attachment
      When using the loadbmp command in LB v2+, as long as I use a string with
      letters in it for the "name" I have no problem. When I use a numeric only
      string I get the following error...

      BASIC PROGRAM HALTED
      bitmap named 5 not found

      the following snippets will serve as an example

      this does not produce an error

      loadbmp "1d", "bmp\2dice1.bmp" 'load our dice images
      loadbmp "2d", "bmp\2dice2.bmp"
      loadbmp "3d", "bmp\2dice3.bmp"
      loadbmp "4d", "bmp\2dice4.bmp"
      loadbmp "5d", "bmp\2dice5.bmp"
      loadbmp "6d", "bmp\2dice6.bmp"

      this produces the error as described

      loadbmp "1", "bmp\2dice1.bmp" 'load our dice images
      loadbmp "2", "bmp\2dice2.bmp"
      loadbmp "3", "bmp\2dice3.bmp"
      loadbmp "4", "bmp\2dice4.bmp"
      loadbmp "5", "bmp\2dice5.bmp"
      loadbmp "6", "bmp\2dice6.bmp"

      am I doing something wrong or is there a reason for this?

      Ken
    • D. Jempson
      I found the same problem in a recent program and worked round it in much the same way, i.e. loadbmp p1 , ..., but I have no idea what the reason is. Derek
      Message 2 of 3 , Apr 7, 2001
      • 0 Attachment
        I found the same problem in a recent program and worked round it in much the same way,
         i.e. loadbmp "p1", ...,  but I have no idea what the reason is.
         
        Derek 
        ----- Original Message -----
        Sent: Saturday, April 07, 2001 4:27 PM
        Subject: [libertybasic] loadbmp

        When using the loadbmp command in LB v2+, as long as I use a string with
        letters in it for the "name" I have no problem. When I use a numeric only
        string I get the following error...

                          BASIC PROGRAM HALTED
                            bitmap named 5 not found

        the following snippets will serve as an example

        this does not produce an error

                loadbmp "1d", "bmp\2dice1.bmp" 'load our dice images
                loadbmp "2d", "bmp\2dice2.bmp"
                loadbmp "3d", "bmp\2dice3.bmp"
                loadbmp "4d", "bmp\2dice4.bmp"
                loadbmp "5d", "bmp\2dice5.bmp"
                loadbmp "6d", "bmp\2dice6.bmp"

        this produces the error as described

                loadbmp "1", "bmp\2dice1.bmp" 'load our dice images
                loadbmp "2", "bmp\2dice2.bmp"
                loadbmp "3", "bmp\2dice3.bmp"
                loadbmp "4", "bmp\2dice4.bmp"
                loadbmp "5", "bmp\2dice5.bmp"
                loadbmp "6", "bmp\2dice6.bmp"

        am I doing something wrong or is there a reason for this?

                Ken






        To unsubscribe from this group, send an email to:
        libertybasic-unsubscribe@egroups.com



        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
      • carlg@libertybasic.com
        ... That is curious. It doesn t look like what you re doing should be a problem. I ll take a look at this for v2.02. -Carl
        Message 3 of 3 , Apr 7, 2001
        • 0 Attachment
          --- In libertybasic@y..., "Kenneth J. Lewis, Sr." <kenlewissr@c...> wrote:
          > When using the loadbmp command in LB v2+, as long as I use a string with
          > letters in it for the "name" I have no problem. When I use a numeric only
          > string I get the following error...
          >
          > BASIC PROGRAM HALTED
          > bitmap named 5 not found
          >
          <snip>

          That is curious. It doesn't look like what you're doing should be a problem. I'll take a look at this for v2.02.

          -Carl
        Your message has been successfully submitted and would be delivered to recipients shortly.