devxlogo

Tip Bank

Copying char array to integer

Question: I have a char array, for example: char orig_amt [20]. I need to convert this to an int orig_amt so I can do some calculation. Is there a command

Attach Table

Question: I have 2 databases in SQL7. I need to attach one table, TB1, from DB1 to DB2, to run a join query. My query uses TB1 from DB1 and

Modifying Generated SyntaxFromSQL Datawindows

Question: When creating a Datawindow from SyntaxFromSQL function with a group break, the Trailer Group Totals and the Summary Totals get generated with a Format of #,##0.00. I would like

Recovering a Corrupt pbl

Question: I have a pbl which gives gpf’s when I try to open it in PB v6.5. I am able to see some syntax when I view the pbl in

Command Line Arguments

Question: I have a small console program that requires I pass arguments for it to run specific functions. I want to change the code so it automatically runs a set

Passing Arguments to ASP pages

Question: I know that when using products like Cold Fusion, you can pass parameters to the page that does the work. Example: [*.cfm]. I have been trying to do this

Class Members and Their Values

Question: I want to get the member names of a class and their values by names. Is this possible with C++ alone or do I need a tool for this?

File I/O

Question: How do I read in both a character string and int value from a file? The data I am trying to read looks like this: Name1 10 10 10Name2