06-10-2022, 04:47 AM
Seems to me that some of the obscure commands would be whatyou want. VIEW, VIEW PORT, WINDOW... some of those, but my memory isn't supplying which is what, at the moment. LOL
"Locate" in the program
|
06-10-2022, 04:47 AM
Seems to me that some of the obscure commands would be whatyou want. VIEW, VIEW PORT, WINDOW... some of those, but my memory isn't supplying which is what, at the moment. LOL
06-10-2022, 05:08 AM
Honestly though, I'd think the easiest way to do something like this would be to just write a simple function to handle the indentation for you.
Code: (Select All) Print TB(5); "Name"; TB(10); "Steve the Amazing!" The above is a very simple little tab routine which advances text to the breakpoint which we desire with our printing for quick formatting and spacing.
06-10-2022, 06:29 PM
(This post was last modified: 06-10-2022, 06:30 PM by Kernelpanic.)
@SMcNeill - Unfortunately that does not work. The correct formatting remains the problem.
At least so it will compiled. Code: (Select All) 'TAB-Versuch, nach Vorlage SMcNeill - 10. Juni 2022
06-10-2022, 07:42 PM
OK everything aligns:
Code: (Select All) Option _Explicit
b = b + ...
06-10-2022, 08:47 PM
(This post was last modified: 06-10-2022, 08:48 PM by Kernelpanic.)
@bplus - Thanks for your effort, . . . on the screenshot you can see where the problem is.
The entries can vary between, for example: 877.00 and 820,888.00 or 2,450,780.67 and more. In VisualBasic I only had to consider the text field for the possible size of the input and output, but everything was then right justified. Unfortunately, I didn't take any screenshots back then (a picture says more than thousand words). Unfortunately I only have VB 3.0 Prof on floppy disk and #4 was from a friend , but I can't find the CD anymore. When trying to load the versions from the web, it only led to dubious sites.
Just extend the print using to #,###,###.00 or use #,###,###,###.00 if billion $
Code: (Select All) Sub PU (row, col, label$, number As Double) ' label needs to be 25 chars max GetNumber() is right aligned input. Even with VB or any GUI you need to allow for maximum number.
b = b + ...
06-10-2022, 11:15 PM
06-10-2022, 11:22 PM
(This post was last modified: 06-10-2022, 11:24 PM by Kernelpanic.)
06-10-2022, 11:34 PM
(06-10-2022, 08:47 PM)Kernelpanic Wrote: Thanks for your effort, . . . on the screenshot you can see where the problem is. Would you mind clarifying how you got that exactly? It looks kinda like a bug, but I tried just printing 1400directly and it seems to work as expected, so I'm wondering what you did different:
06-10-2022, 11:49 PM
I typed 14 . . . and then came automatically 14.00
I've tried several times, always with the same result. I have no explanation for this. - Except there's a bug somewhere in the program. - Since I didn't write it myself. . . I would have to go through the program step by step. But not today! No! |
« Next Oldest | Next Newest »
|