![]() |
|
|||||||
| Programming User to user discussions of general programming topics such as algorithms, APIs, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#76
|
|||
|
|||
|
Rod, my Kevin (son) stopped by today and rearranged (cleaned up) my desk, lowering the monitor 7" so that the center is at eye level. What a difference in looking at the Portrait View. Wow!, what an improvement. Never go back to Landscape view now. Thanks for the prod.
On another front - Michael, "accelerator" keys are being added at an astounding rate (see exe below). {laughing} ============================== The comic book [is] the marijuana of the nursery, the bane of the bassinet, the horror of the home, the curse of the kids and a threat to the future. John Mason Brown ==============================
__________________
It's a pretty day. I hope you enjoy it. Gösta Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape My Ego Site: http://www.SwedesDock.com PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml |
|
#77
|
|||
|
|||
|
Yes, I can believe you like it. To me, portrait monitors are the best improvement in computers since the mouse. Or PowerBasic, which ever came last.
__________________
Rod Just for now I'd like to rest In the shade of a maple tree To the blue Canadian sky I'll say a prayer for the world out there -Gordon Lightfoot |
|
#78
|
|||
|
|||
|
>..... "accelerator" keys are being added at an astounding rate ....
Gosta, let me give you some free advice, worth every penny: Learn how to say, "no," quickly, or you are going to have something which is as easy to learn and use as Microsoft Word(r). |
|
#79
|
|||
|
|||
|
Quote:
Quote:
================================================== ==== "The oldest and strongest emotion of mankind is fear, and the oldest and strongest kind of fear is of the unknown." H.P. Lovecraft ================================================== ====
__________________
It's a pretty day. I hope you enjoy it. Gösta Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape My Ego Site: http://www.SwedesDock.com PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml |
|
#80
|
|||
|
|||
|
When you said you are rapidly adding accelerator keys, I interpreted that as adding many more possible actions... i.e, you are turning what started out to be a nice, simple little "adding machine tape" program into a four-headed monster.
Sounds like "feature creep" to me. I've never had a good experience with feature creep. Ever. |
|
#81
|
|||
|
|||
|
Quote:
Quote:
Your deep concern over feature creep to my "little" program is admirable, even touching. However on the other side of the coin - it's worthwhile to keep in mind that if it wasn't for "feature creep" we'd still be driving Model T's and using Z80's. Latest code attached and the exe can be seen from link below. ===================================== "An inconvenience is only an adventure wrongly considered; An adventure is an inconvenience rightly considered." Gilbert Keith Chesterton (1874-1936) =====================================
__________________
It's a pretty day. I hope you enjoy it. Gösta Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape My Ego Site: http://www.SwedesDock.com PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml |
|
#82
|
|||
|
|||
|
Latest code uploaded. Exe in sig below.
========================================== "There is a country in Europe where multiple-choice tests are illegal." Sigfried Hulzer ==========================================
__________________
It's a pretty day. I hope you enjoy it. Gösta Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape My Ego Site: http://www.SwedesDock.com PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml |
|
#83
|
|||
|
|||
|
Roooooodddddnnnnneeeeyyyyy! I need your help, Pleeaaaassse.? Pretty please? Sugar n top.
I forgot how to reset my monitor back to Landscape. When I set it to Portrait lo those many days ago, I found instructions on Google. And now I can't refind them. {sigh} Need to be able to detect abd adjust accordingly in program but can't get back to Landscape to test, Didn't realize it wasn't roght until I looked at it on the wife's computer. She's still using the old archaic Landscape mode. Can you imagine? {laughing} PS version is now 1.85. (been some significant changes since last code ul.) Better Instructions, ... PSS on a 1920x1280 res, it shows 74 rows. CANCEL - just got it. Was just playing in the water before. For reference: Right Click Desktop Settings>Advanced>Video Card Tab Run its "Control Panel" (card mgmnt program) (At least that's how I remember it {sigh}) =========================================== "Wagner's music is better than it sounds." Mark Twain (1835-1910) ===========================================
__________________
It's a pretty day. I hope you enjoy it. Gösta Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape My Ego Site: http://www.SwedesDock.com PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml Last edited by Gösta H. Lovgren-2; Sep 9th, 2009 at 11:08 AM. Reason: Found settings and corrected version number |
|
#84
|
|||
|
|||
|
Good thing you found it Gösta.
I have never switched my monitor back to the landscape mode since I got it. Not even to prove it could be done. I figure the rest of the world will catch up and we won't have to worry about the ancients and their landscape monitors.
__________________
Rod Just for now I'd like to rest In the shade of a maple tree To the blue Canadian sky I'll say a prayer for the world out there -Gordon Lightfoot |
|
#85
|
|||
|
|||
|
Quote:
============================== Dogs are not our whole life, but they make our lives whole. Roger Caras ==============================
__________________
It's a pretty day. I hope you enjoy it. Gösta Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape My Ego Site: http://www.SwedesDock.com PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml |
|
#86
|
|||
|
|||
|
Tab works now Mike. It wasn't a big deal to me to have Tab as only type with my right hand and it's long trip across the keyboard. {laugh}
Up to version 1.90. (see below). Late tonight. Still gotta go ul to wife's computer. Hope the display width is fixed. Keep your fingers crossed for me will'ya. Can get awful chilly on the Jersey shore, if you know what I mean. Will ul code maybe tomorrow probably. Depends on temperature inside. ======================================= "Everyone lives by selling something." R.L. Stevenson =======================================
__________________
It's a pretty day. I hope you enjoy it. Gösta Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape My Ego Site: http://www.SwedesDock.com PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml |
|
#87
|
|||
|
|||
|
As promised, latest code is attached (exe in sig below). Added a neat new feature today (5 separate Checked Items subtotals). (I hope it's not creepy) I *think* everything is still working.
Still got stuff to do (mostly file stuff) and the to do list ain't getting any shorter.
__________________
It's a pretty day. I hope you enjoy it. Gösta Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape My Ego Site: http://www.SwedesDock.com PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml |
|
#88
|
|||
|
|||
|
Added /\* functionality to tthe Amount tb's today (see Help). For the couple guys interested in the code
Code:
'
' *******************************************************
'
Function Parser(v As String, pctl As Long, ppsn As Long) As Double
Common_Locals
Reset g_Parser_Error
If Len(v$) = 0 Then 'blank
Exit Function
End If
'
v$ = Remove$(v$, ",") 'JIC
v$ = Remove$(v$, " ") 'JIC
v$ = UCase$(v$) 'case of x
'
s$ = Tape(Ppsn).Comment
s1$ = $AutoAdd_Marker
i = InStr(s$, s1$)
If i Then
s$ = Mid$(s$, i + Len(s1$)) 'remove previous AutoAdd if there
End If
Tape(Ppsn).Comment = s$ 'put it back
'
s1$ = $Parser_Marker
i = InStr(s$, s1$)
If i Then
s$ = Mid$(s$, i + Len(s1$)) 'remove previous AutoAdd if there
End If
Tape(Ppsn).Comment = s$ 'put it back
'
i = InStr(Mid$(v$, 2), Any "+-")'<<<"AT sign, X / \ * + -" in here (no spaces, forum editor quirk)
If i Then 'Yes
Tape(Ppsn).Comment = v$ & $Parser_Marker & Tape(Ppsn).Comment
Else
Function = Val(v) 'ain't any so must be positive value
Exit Function
End If
'
Dim vlue$(1 To 20)'way more than needed JIC
'
i = InStr(Mid$(v$, 2), Any "") '<<<"AT sign, X / \ *" in here (no spaces, forum editor quirk)
If i Then GoTo Complex_Expressions20
Parser10:
i = InStr(Mid$(v$, 2), "-")
If i = 0 Then i = InStr(Mid$(v$, 2), "+")
If i = 0 Then 'no? so go
dv = dv + Val(v$)
Function = dv
Exit Function
End If
'got here so found some
dv = dv + Val(v$) 'Val(Left$(v$, i - 1))
v$ = Mid$(v$, i + 1)
GoTo Parser10
''
Complex_Expressions20: 'vlue$()
l$ = Left$(v$, 1) 'make sure + or - first char
If l$ <> "+" And l$ <> "-" Then
v$ = "+" & v$
End If
'
l$ = " " '<<<"AT sign, X / \ * + -" in here (no spaces, forum editor quirk)
i = ParseCount(v$, Any l$)
If i > 10 Then
? "Ease up, Mate!!" & $CrLf & $CrLf & _
"10 expressions is all wot I can 'andle at a time.", %top, $Title
Exit Function
End If
'
Reset n
Do Until i = 0
Incr n 'array elements
i = InStr(2, v$, Any l$)'any actioners?
If i Then 'found one
vlue$(n) = Left$(v$, i - 1) 'array it
v$ = Mid$(v$, i)
Else 'only 1 left
vlue$(n) = v$ 'last one
End If
Loop
'
Reset l$, dv
For ctr = 1 To n
l$ = Left$(vlue$(ctr), 1)
Select Case l$
Case "+": v$ = Mid$(vlue$(ctr), 2): dv = dv + Val(v$)
Case "-": v$ = Mid$(vlue$(ctr), 2): dv = dv - Val(v$)
Case "/": v$ = Mid$(vlue$(ctr), 2): dv = dv / Val(v$)
Case "\": v$ = Mid$(vlue$(ctr), 2): dv = dv \ Val(v$)
Case "X": v$ = Mid$(vlue$(ctr), 2): dv = dv * Val(v$)
Case "*": v$ = Mid$(vlue$(ctr), 2): dv = dv * Val(v$)
Case "@": v$ = Mid$(vlue$(ctr), 2): dv = dv * Val(v$)
End Select
Next ctr
Function = dv
End Function
''''
'Note forum editor apparently doesn't like AT sign, or some other combinations.
I think after I add the File(s) functions, I'll have pretty much run out my string on this creepy program. {sigh} ================================================ "We have art to save ourselves from the truth." Friedrich Nietzsche (1844-1900) ================================================
__________________
It's a pretty day. I hope you enjoy it. Gösta Easy Tape (It All Adds UP): http://www.swedesdock.com/easytape My Ego Site: http://www.SwedesDock.com PB Newby Tips: http://www.swedesdock.com/powerbasic/pb_shortcuts.html JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking Free PB Programs: http://www.swedesdock.com/powerbasic/Programs.shtml Last edited by Gösta H. Lovgren-2; Sep 12th, 2009 at 11:56 PM. Reason: forum quirks. |
|
#89
|
|||
|
|||
|
I like the recent changes, even though I was not one of those requesting same.
I still haven't figured out why I get two colours in the help screen but I haven't looked too hard either, other things on my plate. Well done, Gösta!
__________________
Rod Just for now I'd like to rest In the shade of a maple tree To the blue Canadian sky I'll say a prayer for the world out there -Gordon Lightfoot |
|
#90
|
|||
|
|||
|
Gösta
I found a little glitch with the Backspace key, the cursor is placed infront of any remaining text. I just thought I should let you know about it! This program is handier than I thought it would be!!! Thank you very much!!
__________________
Rod Just for now I'd like to rest In the shade of a maple tree To the blue Canadian sky I'll say a prayer for the world out there -Gordon Lightfoot |
![]() |
| Thread Tools | |
| Display Modes | |
|
|