Search found 59 matches

by ANDY ANDERSON
Thu Jun 09, 2016 12:24 am
Forum: Coding Questions
Topic: And/Or operations
Replies: 11
Views: 2505

Re: And/Or operations

@DontTalkToMe

Thanks again for taking the time to test things.

I agree with Trond's thoughts but in my case, I'm desparately trying to convert 300 programs
with which I make my living to PureBasic. Therefore, I must be a pragmatist. But, do you think
I should post the code in the Bug reporting ...
by ANDY ANDERSON
Wed Jun 08, 2016 11:18 pm
Forum: Coding Questions
Topic: And/Or operations
Replies: 11
Views: 2505

Re: And/Or operations

Try this. The SRC$ value will cause the first argument to be FALSE. The REF$ value
will cause the second argument to be TRUE. In Boolean "OR" logic, the result
should be TRUE.


SRC$ = "F": REF$ = "1"

If SRC$ <> "F" And SRC$ <> "K" And SRC$ <> "R" Or REF$ = "1": Goto SKIPSOMETHING: EndIf ...
by ANDY ANDERSON
Wed Jun 08, 2016 9:41 pm
Forum: Coding Questions
Topic: And/Or operations
Replies: 11
Views: 2505

Re: And/Or operations

Thanks, Dont Talk to Me.

I'm using 5.42 LTS x64.

Yes, I'm sure. It took me the better part of a day to trap it.

Maybe someone with my compiler version can try it.

If it is a bug, it's the very first one I've found in PureBasic.
by ANDY ANDERSON
Wed Jun 08, 2016 8:58 pm
Forum: Coding Questions
Topic: And/Or operations
Replies: 11
Views: 2505

And/Or operations


If SRC$ <> "F" And SRC$ <> "K" And SRC$ <> "R" Or REF$ = "1": Goto SKIPSOMETHING: EndIf
; Do Something
SKIPSOMETHING:


In PowerBasic (which I'm converting), the above code is equivalent to:


If SRC$ <> "F" And SRC$ <> "K" And SRC$ <> "R": Goto SKIPSOMETHING: EndIf
If REF$ = "1": Goto ...
by ANDY ANDERSON
Sat May 21, 2016 4:53 am
Forum: General Discussion
Topic: From PowerBasic to PureBasic a reference aid
Replies: 16
Views: 106137

Re: From PowerBasic to PureBasic a reference aid

If a parent process with a GUI invokes a child process that creates a dialog and
then waits, when the dialog is ended (but not the child process), you are left
with a rectangular hole in the parent GUI. This is because the parent program
which is in a wait state cannot refresh its screen.

In ...
by ANDY ANDERSON
Mon Nov 02, 2015 11:03 pm
Forum: Coding Questions
Topic: ASCII Deprecation
Replies: 9
Views: 1559

Re: ASCII Deprecation

@skywalk, IdeasVacuum and helpy

Thanks, I feel better now. I'm 72 years old and plan to retire at 75.
So 64 bit ASCII will probably carry me through.

But if for some stupid reason, I decide to continue coding to senility,
the functions you mentioned will provide a work around when 128 bits
becomes ...
by ANDY ANDERSON
Mon Nov 02, 2015 5:24 pm
Forum: Coding Questions
Topic: ASCII Deprecation
Replies: 9
Views: 1559

Re: ASCII Deprecation

@ElementE

I am aware of the ReadString, WriteString and various file open commands with
the #PB_Ascii flag.

The question is whether this flag will be supported in the releases after ASCII
deprecation.
by ANDY ANDERSON
Sun Nov 01, 2015 10:17 pm
Forum: Coding Questions
Topic: ASCII Deprecation
Replies: 9
Views: 1559

ASCII Deprecation

Maybe one of the top fellows will answer this.

When ASCII support is deprecated, does that mean that one will not be able to
read or write ASCII to or from files ?

If so, there may be a problem. I write specialized accounting applications
having to do with U.S. government billing such as Medicare ...
by ANDY ANDERSON
Thu Sep 17, 2015 3:13 am
Forum: Coding Questions
Topic: Strange
Replies: 10
Views: 2511

Re: Strange

IdeasVacuum, thanks for your interest.

Yes, PATREC is a string (Define.S PATREC). It's just a quaint convention of mine
to leave off the $ for variables that hold a record read from file. Helps me keep
things straight.

To explain the symptoms: This job stream has 4 programs. The first one accepts ...
by ANDY ANDERSON
Wed Sep 16, 2015 9:36 pm
Forum: Coding Questions
Topic: Strange
Replies: 10
Views: 2511

Re: Strange

Sorry, I pasted it over from the PowerBasic code because I had already replaced the
Select/Case code in the PureBasic program with If/ElseIf statements. I changed all the
syntax except that one that I missed.

Is there a way to edit the post ?
by ANDY ANDERSON
Wed Sep 16, 2015 8:37 pm
Forum: Coding Questions
Topic: Strange
Replies: 10
Views: 2511

Re: Strange

Fred,

I'll will try to cobble a working example but before I do, I wonder if the below code
might be involved. Note the use of If/EndIf within the case structure.

The program produces U.S. Medicare health care claims. The first claim is produced
as expected but the case that it falls in does not ...
by ANDY ANDERSON
Wed Sep 16, 2015 7:24 am
Forum: Coding Questions
Topic: Strange
Replies: 10
Views: 2511

Re: Strange

Thank you, DontTalkToMe.

When you mentioned stack corruption, it reminded me of problems I have had with
Select/Case. So, I changed the use of it to a sequence of If/ElseIf statements and the
program ran just fine.

As an aside, I'm using 5.31 on a Windows machine.

Thanks again.
by ANDY ANDERSON
Tue Sep 15, 2015 11:37 pm
Forum: Coding Questions
Topic: Strange
Replies: 10
Views: 2511

Strange

I've had pretty good luck bringing programs over from PowerBasic but I've encountered an
anomaly: I translated and compiled a program and ran it. It bombed without invoking the
error routine. So, I inserted several MessageRequesters into the program to determine where
it failed. After recompiling ...
by ANDY ANDERSON
Sun Jun 21, 2015 11:17 pm
Forum: General Discussion
Topic: From PowerBasic to PureBasic a reference aid
Replies: 16
Views: 106137

Re: From PowerBasic to PureBasic a reference aid

Here are a couple more routines which will turn your data streams
into random access files. they replace the GET and PUT commands
of PowerBasic. Note that PutS will always insure that the output
record is of the specified length even if the output string is not.
Also note that these routines are for ...
by ANDY ANDERSON
Sun Jun 21, 2015 8:03 pm
Forum: Off Topic
Topic: Thank You
Replies: 63
Views: 23656

Re: Thank You

@Danilo: I understand your position and if I did general development,
I might very well feel the same way. In your market, production is
paramount. However, I am specialized in a particular market niche and
speed along with resource conservation are very important. Ultimately,
we are each doing ...