General information
Category:
Coding, syntax & commands
Hi all, I'm having some problems with private variables. We have a .prg that drives a crystal report that we have. In this .prg, we have many private variables declared, but we are getting weird results with two of them. What happens is, these two variables are used on a form that is called from the .prg that selects which report format the user wants to use to print the report. These two variables, both character, are set with values in this form and are then used in the calling .prg. One is a parameter for a remote view, the other is used to set a crystal reports parameter. Running this one time works fine, but if we try to run through this procedure again, the variable with view parameter fails and we don't get the records that we want on the requery. The values appear no different from the first to the second run. If we shut down the app and start it up again, everything is fine.
Another note, while debugging, after the called form is done, in the command window I simply set these two varibles to what they "appear" to already be, and everything runs fine then.
A little confused here, any help would be greatly appreciated!
Thanks,
Mike
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only