Search found 28 matches

by RTEK
Sat Mar 12, 2011 3:00 am
Forum: Coding Questions
Topic: Need help with using 1way Activex with ComatePlus
Replies: 0
Views: 830

Need help with using 1way Activex with ComatePlus

Hi everyone,

I am trying to use 1way activex in a PB program via ComatePlus and I'm having problems with setting up the calls properly. :(

1way is an ActiveX control which provides a way to create a time-limited trial version of an application. I had used it before in VB
The way it's supposed to ...
by RTEK
Sat Mar 05, 2011 8:16 pm
Forum: Tricks 'n' Tips
Topic: IsNumeric()
Replies: 8
Views: 4646

Re: IsNumeric()

Original post updated to check for empty string or sign only (+/-) passed to IsNumeric


;if empty string or sign only (+ or -) was passed
If string = ""
ProcedureReturn #False
EndIf

and corresponding test


Debug IsNumeric("-")
Debug IsNumeric("+")
Debug IsNumeric("")
by RTEK
Sat Mar 05, 2011 7:26 pm
Forum: Tricks 'n' Tips
Topic: IsNumeric()
Replies: 8
Views: 4646

Re: IsNumeric()

I don't have an answer for the PB syntax error you pointed out.


True means I do not have to alter the number prior to passing to my procedures.

IsNumeric() takes a string as input so you still have to use Val(), ValF() or ValD() to use that string in computations.

Using ValF() or ValD() on the ...
by RTEK
Sat Mar 05, 2011 6:12 pm
Forum: Tricks 'n' Tips
Topic: IsNumeric()
Replies: 8
Views: 4646

Re: IsNumeric()

Skywalk,
you missed my note regarding hex numbers and scientific notations in my original posting.

what do you mean by "not recognized by PB"?

Debug IsNumeric("-.0") = 1, but not recognized by PB
Debug IsNumeric("-.1") = 1, but not recognized by PB

http://modsware.com/PNG/Isnumeric.png
by RTEK
Sat Mar 05, 2011 10:00 am
Forum: Tricks 'n' Tips
Topic: IsNumeric()
Replies: 8
Views: 4646

IsNumeric()

I needed to use IsNumeric() that returns true or false only so I coded this. Maybe someone would also find this useful. I added comments as best as I can.

This version takes only 1 parameter - input can be integer or float, signed or unsigned, with or without comma-separators.
It returns just 2 ...
by RTEK
Mon Jun 16, 2008 5:22 pm
Forum: Coding Questions
Topic: Any purebasic e-book ?
Replies: 41
Views: 22083

@Kale

maybe you could consider writing a book that is similar to

Waite Group's Visual Basic Source Code Library (The Waite Group)
by Brian Shea (Paperback - Dec 17, 1998)

or

Visual Basic 2005 Cookbook: Solutions for VB 2005 Programmers (Cookbooks (O'Reilly))
by Tim Patrick and John Craig ...
by RTEK
Mon Jun 16, 2008 4:40 pm
Forum: Coding Questions
Topic: Need Help Inserting Record to MS-Access
Replies: 4
Views: 1501

@Marco and Foz

It's working now. Thanks a lot for the help.


....my use of chr(34) is a carry-over from VB :oops:
by RTEK
Mon Jun 16, 2008 8:38 am
Forum: Coding Questions
Topic: Need Help Inserting Record to MS-Access
Replies: 4
Views: 1501

Need Help Inserting Record to MS-Access

Hi,

I need help with inserting a record into an MS-Access table.
All fields for the table were defined as text fields.
My program would not insert a record into the MS-Access table.
Portions of the code were copied from postings found here in the forum.
I am currently using PB v4.1

Shown below ...
by RTEK
Fri Apr 18, 2008 7:39 am
Forum: Tricks 'n' Tips
Topic: HTTPGetFromWeb() 2.0 - use WinInet API
Replies: 32
Views: 34711

Just found this code - I have some VB programs that downloads webpages and extracts info from them. They can now be converted to PureBasic. This is really helpful and useful stuff.

Thanks a lot!!! :D
by RTEK
Fri Oct 12, 2007 7:33 pm
Forum: Off Topic
Topic: Left or Right Brainer ?
Replies: 51
Views: 9362

got to view the individual frames (just took a quick drive home :lol: ) anyways the individual frames viewed sequentially frame-by-frame only go in one direction!

...also got the image to change direction at will by covering the main image for a few seconds and concentrating on the reflection as ...
by RTEK
Fri Oct 12, 2007 6:45 pm
Forum: Off Topic
Topic: Left or Right Brainer ?
Replies: 51
Views: 9362

all I meant is run the gif thru a something like gifsplitter to see the individual frames (I don't have it here and can't install it - work policy)
by RTEK
Fri Oct 12, 2007 5:48 pm
Forum: Coding Questions
Topic: How do I read a variable value in another process?
Replies: 34
Views: 6589

I agree it would be good to have it in PB - I also miss it coming from VB myself.
by RTEK
Fri Oct 12, 2007 5:33 pm
Forum: Off Topic
Topic: Left or Right Brainer ?
Replies: 51
Views: 9362

For me, I first saw it counter-clockwise/anti-clockwise, then I saw it go clockwise after reading the accompanying article.

...just a thought, anybody tried decompiling the gif animation? maybe they actually have it going both ways ....messing with anyone who comes across it. :twisted:
by RTEK
Wed Oct 10, 2007 1:49 am
Forum: Coding Questions
Topic: PureCardDraw and ClearScreen()
Replies: 7
Views: 1566

Got it.

Thanks for your help!
by RTEK
Wed Oct 10, 2007 1:37 am
Forum: Coding Questions
Topic: PureCardDraw and ClearScreen()
Replies: 7
Views: 1566


I wonder what you want to do.
you create Imagegadgets for each card, but want them to disappear right away?


I am not making any specific application using PB right now. I just wanted to find out how to erase any graphics from a window. ImageGadget command draws the cards on the window as ...