Saving the value for theBalB a text file is pretty easy. Printing on the
other hand is a bit more complicated. Lets tackle the text file first.
You will want to use these RB functions
The FolderItemDialog Class SaveAsDialog
TextOutputStream
There are good examples in the online Language Reference
First Dimension the variables
Dim dlg as New SaveAsDialog
Dim f as FolderItem
Dim fileStream As TextOutputStream
Then using the example in the LR to setup the way you want the
SaveAsDialog to appear to the user for the following:
Initial Directory
Prompt Text
Suggested File Name
The Dialog Title
The Action Button Caption
Launch the dialog to ShowModal
Be sure to check that the FolderItem is not Nil (it is Nil if the user
presses cancel so you have to handle that). The LR shows you how.
If it is not Nil then you use TextOutputStream to create, write and
close the file
When you get that working you will be ready to tackle printing.
HTH
Tom
> OK
> So, I now have the Application sorted out, but it needs more.
>
> This is the last piece of code. ("BalB" is Balance B)
> Code:
> theBalB = Str(aBalB)
>
> I would like it now to Log BalB to a text file or Print to a
> Printer. ( I use Dot Matrix, PC is XP Pro.) Is this the right
> place to ask ?
> If so, what is the Code to Log to Text file ?
> And to Print to Printer with <True/False> for Printing choice On/Off.
> "False" would be so it does not print, but still logs to text.
>
> Thanks.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|