Quote: "Personally - I don't know. You will need to experiment.. ALOT.. like.. szStatement might HAVE to be a pointer, or not, or an ADDRESS to your pointer, or not, you might be able to input an integr.. "
The problem is that dbInput in the help file doesn't match the prototype in header file. Below is a bit of code I used in one of my OOP modules.
SetCurrent();
dbInk (Red, White); // write in red
dbText (610, 160, "File: "); // lay down a prompt
CopyTo(0);
dbSync(); // and write it to the screen
dbInk (Red, White);
dbSetCursor (660, 160); // put the cursor right after the prompt
strcpy (fileName, dbInput()); // copy the return from the input to our buffer
dbInput returns a pointer to a character string that represents the keystrokes (which are echoed to the screen) entered up to the carriage return. On reflection it looks as if, per another thread, that I need to go back and delete that pointer since it's allocated space rather than static. That also means I'll need to create a temporary pointer to hold the returned address.
Lilith, Night Butterfly
I'm not a programmer but I play one in the office