Search found 19 matches

by mubinaktan
Mon Dec 17, 2007 10:46 pm
Forum: Coding Questions
Topic: How to lowercase a unicode character?
Replies: 21
Views: 4354

This works here if compiled to unicode:


openConsole()

s.s = "Deutschland ÜBER Alles"
charLower_(@s)
printN(s)

s.s = "Deutschland ÜBER Alles"
charUpper_(@s)
printN(s)

while inkey() = ""
wend

closeConsole()
end



Oh, yeah, that worked! But a little explanation would be nice. What the hell ...
by mubinaktan
Mon Dec 17, 2007 7:30 pm
Forum: Coding Questions
Topic: How to lowercase a unicode character?
Replies: 21
Views: 4354

True, in unicode it doesn't lower the Ü but its worth mentioning you don't need unicode for those characters.

Oh, do I not need unicode? Could you plz gimme a quick example?

BTW, I thought that "Deutschland, Deutschland, über alles auf der Welt" was the *current* German anthem. I didn't know ...
by mubinaktan
Mon Dec 17, 2007 3:39 pm
Forum: Coding Questions
Topic: How to lowercase a unicode character?
Replies: 21
Views: 4354

Oh yes, I am compiling in unicode. It's something like this:


OpenConsole()
Print("Write anything here: ")
x.s = Input()

PrintN(LCase(x))

While Inkey()="": Wend: CloseConsole(): End


After running the program, if I enter a string that contains unicode and standard ASCII characters the program ...
by mubinaktan
Mon Dec 17, 2007 2:05 pm
Forum: Coding Questions
Topic: How to lowercase a unicode character?
Replies: 21
Views: 4354

How to lowercase a unicode character?

I am trying to "LCase" the user input. But it fails when a unicode character is entered. Thye program simply outputs the entered string.

How can I fix this?

.
by mubinaktan
Tue Dec 11, 2007 3:46 pm
Forum: General Discussion
Topic: About the PureBASIC book: Hi, the author, are you here?
Replies: 26
Views: 8262

Given links still don't work... :(

I ain't kidding.

I don't understand that. I have tried it on two different computers and under IE and FireFox but I have seen only blank screens (not 404 errors)

Hmm...
Tonite I'll try to reach the related pages by using Linux.
If I still fail, perhaps I'll ...
by mubinaktan
Tue Nov 27, 2007 8:48 pm
Forum: General Discussion
Topic: About the PureBASIC book: Hi, the author, are you here?
Replies: 26
Views: 8262

What are you on about? see the big button on the right, it says:

"Click here to buy a copy from www.lulu.com"

That's very kind of you. I have severely myopic eyes yet I can see the "big button". I didn't say "there are not any button", I said that the link was broken. I click it but it takes me ...
by mubinaktan
Tue Nov 27, 2007 5:10 pm
Forum: General Discussion
Topic: About the PureBASIC book: Hi, the author, are you here?
Replies: 26
Views: 8262

About the PureBASIC book: Hi, the author, are you here?

I think many people here know the book "PureBASIC: A Beginner's Guide to Programming".

Do its author or publisher hanging out in this forum? I am writing these here because I can't find a correspondence in its homepage ( http://www.pb-beginners.co.uk ).

1) The "buy it" links seems broken.
2) And ...
by mubinaktan
Sat Nov 24, 2007 10:39 am
Forum: Coding Questions
Topic: Prototypes make me sick
Replies: 8
Views: 1677

Thanks to this excellent forum

A prototype is the same concept applied to procedures. You do something like:

Prototype.q action(number.l, float.f, byte.b)

and you've created a template for a procedure that takes in a long, a float and a byte and returns a quad.

Now you do:

MyProc.action = @SomeProc()

and you've created a ...
by mubinaktan
Fri Nov 23, 2007 6:29 pm
Forum: General Discussion
Topic: Seeking an advocate for Evil
Replies: 25
Views: 6017

Back compatibility is not necessarily a good thing

This is one of the reasons why the language is so clean and simple, the team aren't afraid to change the language if they find a better way of doing it.

To my humble knowledge, back compatibility issues with C made the C++ so ugly and hard to learn.

I strongly hope that the team will not change ...
by mubinaktan
Thu Nov 22, 2007 8:01 pm
Forum: Coding Questions
Topic: Prototypes make me sick
Replies: 8
Views: 1677

Prototypes make me sick

Can you please "point" me a good tutor about prototypes?

I am trying to learn from PB's chm help file and "PB Survival Guide" but the subject seems so hard. I need extra support...
by mubinaktan
Thu Nov 22, 2007 5:14 pm
Forum: Coding Questions
Topic: To point or not to point
Replies: 3
Views: 956

Ah yes... C/C++ made the confusion

In Purebasic, a pointer is just a variable of type long which we usually use to store addresses.
That makes things clearer. C/C++ made my mind confused...

My thanks go to all PB fans...
by mubinaktan
Thu Nov 22, 2007 3:59 pm
Forum: Coding Questions
Topic: To point or not to point
Replies: 3
Views: 956

To point or not to point

I am trying to learn using dll functions. I have seen an example from the "PureBASIC Survival Guide" ( http://www.xs4all.nl/~bluez/datatalk/pure5.htm#3_winapi_and_dlls ) like this:

OpenLibrary(1,"MyMagical.dll")
*a_pointer = GetFunction(1,"blahblahblah")
CallFunctionFast(*a_pointer,first_variable ...
by mubinaktan
Thu Nov 22, 2007 8:24 am
Forum: General Discussion
Topic: PureBASIC and expert systems
Replies: 6
Views: 3037

Don't gimme fish, teach me fishing instead

As a novice, I need your advices. In order to use CLIPS (or CLIPS.dll) together with PureBASIC, I am currently trying to learn how to use a dll from PB ( http://www.xs4all.nl/~bluez/datatalk/pure5.htm#3_winapi_and_dlls ). I started with CallFunction and will advance to prototypes. As far as I ...
by mubinaktan
Wed Nov 21, 2007 9:18 am
Forum: General Discussion
Topic: PureBASIC and expert systems
Replies: 6
Views: 3037

Never heard

Using PB and CLIPS in games? Hmm... Sounds exciting. But I don't know an example of it. My goal is to build an expert system which is consisted of CLIPS as the inference mechanism and PB for user interface. Of course PB itself can be used alone for such a system but a shell will make things easier ...
by mubinaktan
Tue Nov 20, 2007 10:14 pm
Forum: General Discussion
Topic: PureBASIC and expert systems
Replies: 6
Views: 3037

PureBASIC and expert systems

Is anybody here interested in artificial intelligence, especially expert systems?

I am planning to use an expert system shell, that is CLIPS ( http://www.ghg.net/clips/CLIPS.html ), with PureBASIC.

CLIPS has a dll, too ( http://ourworld.compuserve.com/homepages/marktoml/clipstuf.htm ).

There are ...