Search found 61 matches

by RobertSF
Fri Feb 08, 2019 3:21 am
Forum: Coding Questions
Topic: How to access Adobe Acrobat PDF functions?
Replies: 2
Views: 1265

Re: How to access Adobe Acrobat PDF functions?

Thank you so much, and 32-bit is fine!
by RobertSF
Wed Feb 06, 2019 5:08 am
Forum: Coding Questions
Topic: How to access Adobe Acrobat PDF functions?
Replies: 2
Views: 1265

How to access Adobe Acrobat PDF functions?

I can make PDFs show in a Web Gadget, and it works fine, but some have pointed out that user settings can affect this. So I wonder if anyone knows how to access the functionality that lies inside the basic Adobe Acrobat Reader, which almost everyone has on their computer.

In Visual Studio, I added ...
by RobertSF
Thu Jan 24, 2019 4:37 am
Forum: General Discussion
Topic: Check out these differences between VB(.Net) and PureBasic
Replies: 5
Views: 3591

Re: Check out these differences between VB(.Net) and PureBas

But just look, to set a parameter. In PureBasic, you choose whether it's string or numeric and use the appropriate function -- SetDatabase[String/Long](internal database number, ordinal number of the parameter within the collection of parameters, parameter value). That's it.

In VB, you have to ...
by RobertSF
Thu Jan 24, 2019 4:35 am
Forum: General Discussion
Topic: Check out these differences between VB(.Net) and PureBasic
Replies: 5
Views: 3591

Re: Check out these differences between VB(.Net) and PureBas

Josh wrote:Did you ever test your code before publishing? I don't think so.
Oops, you caught me. I guess that makes my point wrong as well. Microsoft indeed is better than PureBasic. Yay!
by RobertSF
Thu Jan 24, 2019 4:31 am
Forum: General Discussion
Topic: Variables or repeated function calls?
Replies: 4
Views: 1811

Re: Variables or repeated function calls?

My rule is to never create a variable if it's only going to be used once.
Excellent rule. But is the corollary "always create a variable if it's going to be used more than once" true?

For example, the function UserName(). It returns the logged in user name. It doesn't seem to involve much ...
by RobertSF
Thu Jan 24, 2019 4:23 am
Forum: General Discussion
Topic: Still super frustrated with how useless modules are
Replies: 14
Views: 4712

Re: Still super frustrated with how useless modules are

I tried coming back to PureBasic this week after leaving it sit for a couple of months. My coding style is very heavily influenced by self documenting code and strong encapsulation. I became exceptionally frustrated after taking a deep dive into the viability of using PureBasic for a particular use ...
by RobertSF
Thu Jan 24, 2019 3:48 am
Forum: Coding Questions
Topic: Questions about compiling for distribution
Replies: 5
Views: 1628

Re: Questions about compiling for distribution

Thanks for the clarification! I didn't want to ask again :oops: but I had wondered where the executable went. I thought it might just compile in memory and then run, but now I know it's in the temp directory.
by RobertSF
Thu Jan 24, 2019 3:46 am
Forum: Coding Questions
Topic: hmmm - bug or not?
Replies: 9
Views: 2044

Re: hmmm - bug or not?

It's a behavior I see in Microsoft products. It can be annoying, but I can see why the behavior is as it is.

It's annoying when, for example, you try to copy something from a web page into a Word document. Now your Word document is full of crap, javascript, css, or whatever was formatting the text ...
by RobertSF
Wed Jan 23, 2019 3:39 am
Forum: General Discussion
Topic: Variables or repeated function calls?
Replies: 4
Views: 1811

Variables or repeated function calls?

Generally, you want to avoid repeated function calls. For example, if your string processing calls for repeatedly using the length of the string, you call Len(string) once, save the result in a variable, and then use the value in the variable instead of calling Len(string) over and over. This makes ...
by RobertSF
Wed Jan 23, 2019 3:04 am
Forum: Coding Questions
Topic: Questions about compiling for distribution
Replies: 5
Views: 1628

Re: Questions about compiling for distribution

Thanks for the reassurance, everyone! :)
by RobertSF
Wed Jan 23, 2019 12:40 am
Forum: Coding Questions
Topic: When does webgadget NOT work to view PDFs?
Replies: 9
Views: 2362

Re: When does webgadget NOT work to view PDFs?

Thanks for the info on pdftopng. If I start doing more with the PDF format, it will come in handy.

For now, though, since Web Gadget displays PDFs fine for everyone here at work, I've decided to use that despite the problems other people have had. It was a weekend project, and I basically finished ...
by RobertSF
Wed Jan 23, 2019 12:28 am
Forum: Coding Questions
Topic: Questions about compiling for distribution
Replies: 5
Views: 1628

Questions about compiling for distribution

Usually, you compile with debug information while developing, and then compile without debug information for the final release. How does this work in PureBasic?

In Compiler Options, under Compile/Run, there's a checkbox for Enable Debugger. But I've created executables with that checkbox both ...
by RobertSF
Mon Jan 21, 2019 10:00 pm
Forum: Coding Questions
Topic: When does webgadget NOT work to view PDFs?
Replies: 9
Views: 2362

Re: When does webgadget NOT work to view PDFs?

Check out Pdfium here on this forum and write your own pdf-reader !

I checked it out, and I would use PDFium loyally if I needed to create and edit PDFs, but I need something simpler to just view them.

I've decided to stick with WebGadget for now. I also use VB.Net, and I've discovered that a ...
by RobertSF
Sun Jan 20, 2019 12:19 pm
Forum: Coding Questions
Topic: Absolute Val for Integers?
Replies: 62
Views: 11498

Re: Absolute Val for Integers?

Josh wrote:And why doesn't do Pb this by itself?
Agreed, but at least you don't have to resort to the Windows API to fix this. :wink:
by RobertSF
Sun Jan 20, 2019 9:02 am
Forum: Coding Questions
Topic: question about complicated compatibility checking
Replies: 17
Views: 3518

Re: question about complicated compatibility checking

I'm trying to understand the requirements. You have a 32 x 32. All the cells are full, and you want to calculate if values in one cell are compatible with values in the surrounding cells? When you say 1:3, does that mean row 1, column 3? And you mentioned a few values. 7, 20, 34, 65. Can you explain ...