: i am opening an img.jpg in qbasic but it is very slow...
: how can i optimize the program in order to open images faster?
:
Optimizing has to do with the way your code is structured. Removing Gotos, Gosubs, function calls, Ifs, etc. anything that modifies the control flow (sends code execution to a different place) will accelerate execution, but that's not always possible. I don't remember if it does, but if QB supports Variant data types (unspecified type) and you use any of them, it will slow code down considerably. Using the proper data types is also important since conversions take time.
I can't think of anything else, especially without code to look at. Then again, I don't know that I could help more even with code to look at...