Results 1 to 4 of 4

Thread: Chr Function Missing?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Dallas,TX
    Posts
    170
    Hello there! Here is what I did:

    I wrote a program on my PC (running Win2000). I have the entire Visual Studio installed and the program uses the Chr() function like this:

    SomeVariable = Chr(KeyAscii)

    I tested the crap out of it on my PC and it works great. I took another PC, which I installed a fresh copy of Win98SE and VisualBasic 6 on. I copied all the program files (frm, vbp, etc) to this Win98SE PC. When I run the program from within the VB environment, the program halts and in my code "Chr" is highlighted. Obviously, VB doesn't have any clue what that function is from within Win98. Now, If I start a new project from that Win98 PC, I can use the Chr function all I want.

    It seems that in the move over, that project has lost a critical "library reference" or some sort. Anybody happen to have a clue what library file "Chr" belongs to so I can add a reference to it?

    Thanks!!
    Phil

  2. #2
    Member
    Join Date
    Nov 1999
    Location
    panama
    Posts
    57
    your need create setup program of your application for win2000 and installing in machine win98se and this running ok.


    carlosapv
    [email protected]
    THE TRUTH IS OUT THERE
    Visual Basic 6.0 SP5

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Dallas,TX
    Posts
    170
    Yep, that will certainly work fine, but I need to be able to add to and edit the program from the Win98 machine. Right now, I'm creating a new project and adding the old forms into that project hoping the old references will be restored.

    Thanks,
    Phil

  4. #4
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    CHR is in the Visual Basic For Applications library (for VB6 it will be Vba6.dll). If you wonder from what library a function comes, press shift F2 on the function. It will show the definition (in the object browser for this one).

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