Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. itsgsd

    Preventing program from freezing a couple of sec

    Try calling Application->ProcessMessages() periodically within your function.
  2. itsgsd

    RadioGroup in Borland Builder

    Instead of adding the radio buttons as Items, why not actually place RadioButtons onto your radio group box. Then say you have RadioButton1..4 and you want to make RadioButton3 invisible, just do: RadioButton3->Visible=false; Or with items, you'll need to delete the item that you no longer...
  3. itsgsd

    No data is displayed during the first call.

    ShowModal() transfers control to DebugPage so that the ModalResult can be returned and evaluated. The subsequent code isn't executed until DebugPage is closed. If you really need to show the form Modally, then you need to populate the form with any values you want to see before the ShowModal...
  4. itsgsd

    viewing forms in Borland

    Take a look at the left and top properties, my guess would be that one or both of these have coordinates placing your form outside of your actual screen area.
  5. itsgsd

    Borland random() function

    That's close 2ffat, but actually, randomize() seeds the random number generator for you in a pseudo-random way. random(N) returns a random number from 0 to N-1, so random(100) returns a random number that is < 100 and >= 0.
  6. itsgsd

    CAn someone please help me create a OnMouseEnter for a Image?

    So if I understand you right, you have 2 images, one directly on top of the other, and behind them is a panel. When the mouse moves over Image1, you want to hide it and show Image2, then when the mouse leaves the images, you want to hide Image2 and show Image1. If that's correct, then your code...
  7. itsgsd

    How to determine difference between 2 times

    >> The times are stored as hex values. Stored In what type of variable, one of the flavors of int? If so, they're not stored as hex values, they're stored as binary values. >> When I convert the times from hex to integer and then convert them into seconds, I get an entirely different value...
  8. itsgsd

    How to implement Copy function?

    >> I need help in generalising a code to implement Copy function for the text given in the TMemo for a small project. When you say "Copy", do you mean that you want to copy the text to the Windows Clipboard? If so: Memo1->CopyToClipboard(); Note that CopyToClipboard() will only copy...
  9. itsgsd

    Storing session data in a MySQL database

    >> I am using the built-in PHP session functions and want to store that data in a MySQL db. Any ideas on how to do it? The answer to your question is Yes I'm sure a bunch of us have ideas on how to do it. I don't think that's the answer that you want though. You didn't give any information to...
  10. itsgsd

    PHP with mySQL Insert statement using session variables

    You're calling a MySQL function: Sentence(SentenceManner) But Sentence isn't a valid mysql function. I know this isn't the MySQL forum, so correct me if I'm wrong, but it makes no sense to use a WHERE clause in an INSERT statement. It doesn't look like you actually want to insert a row in...
  11. itsgsd

    Weird compile error

    Do you get the error only on new projects, or on old projects that you attempt to re-compile?
  12. itsgsd

    About the access of the dbf file

    >> getc() doesnt returns the signedchar.it returns the unsigned char. Actually, getc() returns a signed int, not a char (signed or unsigned), which means it can return values of 0-255 for your ascii characters or it can return -1 which is EOF. ascii 255 is not the same as EOF, but it appears...
  13. itsgsd

    About the access of the dbf file

    Your problem is that you are mixing signed and unsigned variables. getc returns a signed integer, but your variable c is an unsigned char. getc doesn't ever return 255, it returns -1 (EOF) on end of file, but as I mentioned earlier, -1 (EOF) when assigned to an unsigned char becomes 255. To...
  14. itsgsd

    alias variables vs references

    That is true, sometimes (one of you compiler gurus correct me if I'm wrong). If you have a compiler that performs good alias analysis, in the examples above both the reference and symbolic constant would ultimately be handled identically. The only difference is when each is replaced by the...
  15. itsgsd

    alias variables vs references

    > If an alias isn't a reference variable, then how do i declare an alias? You're making the concept of an alias more difficult than it is. There is no strict definition of an alias in C++, an alias is a general concept, not a specifically defined type. In the case of a reference, you have 2...
  16. itsgsd

    alias variables vs references

    Actually if you look closely, they are not the same. I said a reference is an alias, I didn't say an alias is a reference. A reference variable is an alias to an actual variable, but an alias is not a reference variable. Alias just means a different name for the same thing. You can create...
  17. itsgsd

    How to print a complete window

    You mean like Form1->Print()? That should print everything on your form to your default printer. If you need more control over printing, you can print directly to the printer canvas. There's quite a bit to controlling the printer directly, take a look at the Printer() object (<#include...
  18. itsgsd

    alias variables vs references

    A reference is an alias. If I have the following code: int y; int &x = y; // x is a reference to or alias of y Now anything that I do to x (like x=10) is really done to y. x (which is a reference variable) is just an alias for y. Of course you've probably googled to find this info by now...
  19. itsgsd

    About the access of the dbf file

    Ok, Vinay, the eof character most likely isn't 255, I think you're referring to the value of EOF, which is generally -1. The Hex equivalent of -1 is 0xFF, which if is assigned to an unsigned char becomes 255, which is also 0xFF. EOF is the value that is returned by file i/o functions (i.e...
  20. itsgsd

    About the access of the dbf file

    Show the code that you have written to read the file, the way that you determine end of file depends on how you have opened and are reading the file.

Part and Inventory Search

Back
Top