Search found 25 matches

by hessu
Wed Oct 09, 2019 2:41 pm
Forum: Coding Questions
Topic: ASCII to UNICODE
Replies: 16
Views: 5761

Re: ASCII to UNICODE

Hi Mk-soft

your program works well.

Thank you very much. :P :P :P
by hessu
Wed Oct 09, 2019 2:29 pm
Forum: Coding Questions
Topic: ASCII to UNICODE
Replies: 16
Views: 5761

Re: ASCII to UNICODE

I use Pb 5.71
This file is saved as ascii file with liberty basic a couple of years ago.
Or maybe plain text file.
:lol:
by hessu
Wed Oct 09, 2019 1:26 pm
Forum: Coding Questions
Topic: ASCII to UNICODE
Replies: 16
Views: 5761

Re: ASCII to UNICODE

Hi thanks for tip.

jag tried write THis string thing, but no luck.

can du write a little exempel
how to read a string fro file.
I would be much happy for that.
I think it so complicated med purebasic.
But it works so good with sqlite.
by hessu
Wed Oct 09, 2019 8:25 am
Forum: Coding Questions
Topic: ASCII to UNICODE
Replies: 16
Views: 5761

Re: ASCII to UNICODE

Procedure.s utf8encode(txt.s)
*b=AllocateMemory(StringByteLength(txt.s,#PB_UTF8)+1)
PokeS(*b,txt.s,Len(txt.s),#PB_UTF8) ; writes 2 bytes, 1 for 'x' and 1 for a zero (no special characters)
txt.s=PeekS(*b,StringByteLength(txt.s,#PB_UTF8),#PB_Ascii)
FreeMemory(*b)
ProcedureReturn txt.s ...
by hessu
Thu Sep 26, 2019 7:24 am
Forum: Coding Questions
Topic: Printing on screen.
Replies: 6
Views: 3037

Re: Printing on screen.

Thank you.

:mrgreen:
by hessu
Thu Sep 26, 2019 3:29 am
Forum: Coding Questions
Topic: Printing on screen.
Replies: 6
Views: 3037

Printing on screen.

In tex Liberty basic I write:

a=5
print"number is ";5
and I get number is 5

How can I do that in Pure basic
the command debug is so confusing
by hessu
Fri Apr 21, 2017 1:27 pm
Forum: Coding Questions
Topic: String evalution
Replies: 4
Views: 1744

String evalution

Hi Everybody
This is an example code in Liberty basic :

input "Type a numeric expression>"; code$
answer = eval(code$)
print answer

For instance If I type 5+5
I'll get 10

How to do this in Purebasic ?

I found nothing in PB 5.60 help section.

I need this badly
by hessu
Mon Apr 17, 2017 10:02 am
Forum: Coding Questions
Topic: Command changes
Replies: 2
Views: 1573

Re: Command changes

Thank you.

now it works with pointers, but got new problems.

I'll try to fix them.
by hessu
Mon Apr 17, 2017 4:49 am
Forum: Announcement
Topic: PureArea.net - Several News + (german) Showcase online
Replies: 138
Views: 286272

Re: PureArea.net - Several News + (german) Showcase online

I can,t reach your site.
I use malware bytes and it says that you have a malicious website.
:( :x :oops:
by hessu
Mon Apr 17, 2017 4:39 am
Forum: Coding Questions
Topic: Command changes
Replies: 2
Views: 1573

Command changes

PB 4.60
[Procedure.s Private_GaussSolverSymbolicMatrix(*MatrixA.Matrix, ValidLineCount.u, *VarFlag.i, P_Decimal.b = 10)]

This is from Guimauve's Matrix Library.
I have BP 4.60 too, but it,s not compatible with BP 5.60 commands and I want to use PB 5.60.

PB 5.60
Native types can't be used with ...
by hessu
Thu Mar 30, 2017 6:14 am
Forum: Coding Questions
Topic: How to input numbers
Replies: 5
Views: 2480

Re: How to input numbers

Thank you very much

:lol: :P
by hessu
Wed Mar 29, 2017 1:27 pm
Forum: Coding Questions
Topic: How to input numbers
Replies: 5
Views: 2480

How to input numbers

I want to write a simpel mathematic program. But I don't know how to Input numbers.
open console()
a$=input()
b$=input()
a=Val(a$)
b=Val(b$)

if I input a$ as 1.5 and b$ as 2

debug a *b

aswer will be 2

min question is : How I can input numeric values

I've programmed in Liberty Basic and no ...
by hessu
Fri Mar 24, 2017 6:47 am
Forum: Coding Questions
Topic: I Need some database coding help
Replies: 4
Views: 1702

Re: I Need some database coding help

Thank you for good advice. :lol: :lol: :lol:
by hessu
Thu Mar 23, 2017 10:38 pm
Forum: Coding Questions
Topic: I Need some database coding help
Replies: 4
Views: 1702

I Need some database coding help

v$ = "%" + InputRequester("", "Enter Nutritiongroup:", "") + "%"

DatabaseQuery(1, "SELECT * FROM Food where Nutritiongroup Like '" +v$+ "' " ) , This one is good

DatabaseQuery(1, "SELECT * FROM Food where Nutritiongroup = '" +v$+ "' ") , This one is NOT good, I get none record.

Please help !
by hessu
Tue Dec 01, 2015 12:13 am
Forum: Coding Questions
Topic: Getting double records
Replies: 3
Views: 660

Re: Getting double records

Wow. Thank you so much.
No double records anymore.