Search found 233 matches

by nimdays
Sep 19, 2020 5:48
Forum: Beginners
Topic: Null Pointer Access
Replies: 2
Views: 760

Re: Null Pointer Access

@fxm, Thank you
by nimdays
Sep 19, 2020 4:10
Forum: Beginners
Topic: Null Pointer Access
Replies: 2
Views: 760

Null Pointer Access

I dont understand why this causes null pointer function update_file(s as string,d as string)as integer on error goto hell dim as integer ff = freefile, ff1 dim as string ln if open (s for input as #ff) then return 0 ff1 = freefile if open (d for output as #ff1) then close #ff : return 0 end if while...
by nimdays
Aug 02, 2020 4:53
Forum: Community Discussion
Topic: any free BASIC for web/ios/android
Replies: 15
Views: 16818

Re: any free BASIC for web/ios/android

B4A is free now
Problem is I'm using XP
by nimdays
Aug 01, 2020 8:26
Forum: Beginners
Topic: MKDIR Question
Replies: 6
Views: 1339

Re: MKDIR Question

Thanks All
by nimdays
Aug 01, 2020 5:07
Forum: Beginners
Topic: MKDIR Question
Replies: 6
Views: 1339

MKDIR Question

This doesn't create any folder

Code: Select all

?mkdir ("foo\bar\baz")
I think the documentation should be updated because you must create it manually

Code: Select all

?mkdir ("foo")
?mkdir ("foo\bar")
?mkdir ("foo\bar\baz")
by nimdays
Jul 09, 2020 2:22
Forum: Beginners
Topic: Resizing ImageCreate
Replies: 8
Views: 1862

Re: Resizing ImageCreate

Thanks All, Really apreciate it
by nimdays
Jul 08, 2020 10:16
Forum: Beginners
Topic: Resizing ImageCreate
Replies: 8
Views: 1862

Re: Resizing ImageCreate

Can you show me please? Thanks for the code, I'll try that. I haven't create the resizing function yet because I wanted to know how to resize the buffer with imagecreate. Below is the complete code I've been working so far if you want to help. It's still ugly. My goal is to create a tiny windowing ...
by nimdays
Jul 08, 2020 2:52
Forum: Beginners
Topic: Resizing ImageCreate
Replies: 8
Views: 1862

Re: Resizing ImageCreate

@badidea, Thanks for your help I've been working on a very small widget stuff and I wanted to add how to resize it. Perhaps you have an example how to copy from the buffer to another buffer ? Below is an example type fbitmap as ushort wdata as any ptr pimage as ulong ptr pdata,ppmap 'start pixel &am...
by nimdays
Jul 07, 2020 19:49
Forum: Beginners
Topic: Resizing ImageCreate
Replies: 8
Views: 1862

Resizing ImageCreate

Is there any way to resize the buffer created with imagecreate?

Thanks
by nimdays
Jun 18, 2020 5:17
Forum: Sources, Examples, Tips and Tricks
Topic: Overlapping Rectangles
Replies: 0
Views: 1388

Overlapping Rectangles

There are 16 possibilities when 2 rectangles are overlapping each other const sw = 800,sh = 600,sd = 32 type rect as integer x,y,w,h as ulong bcolor end type function test_rect(rs as rect,rd as rect)as integer dim as integer l = rs.x - rd.x,t = rs.y - rd.y,tb,lr,tb1,lr1 'src tb += cuint(t) <= rd.h t...
by nimdays
May 21, 2020 9:12
Forum: Beginners
Topic: Pointer To Pointer Question
Replies: 3
Views: 1116

Re: Pointer To Pointer Question

Thank you both
by nimdays
May 21, 2020 4:33
Forum: Beginners
Topic: Pointer To Pointer Question
Replies: 3
Views: 1116

Pointer To Pointer Question

Hello, Do you think below is safe without allocating first? type node as node ptr pnext end type dim as node ptr proot,ptail proot = new node ptail = new node proot->pnext = ptail dim as node ptr ptr p = @proot p[1] = ptail '' this ?*p & " " & *(p+1) ?proot & " " &...
by nimdays
May 20, 2020 14:45
Forum: Community Discussion
Topic: Mobile Friendly
Replies: 0
Views: 1487

Mobile Friendly

I can see better now
by nimdays
May 17, 2020 4:55
Forum: Sources, Examples, Tips and Tricks
Topic: Simple Linear Gradient
Replies: 4
Views: 1386

Re: Simple Linear Gradient

Thanks all
by nimdays
May 15, 2020 7:13
Forum: Sources, Examples, Tips and Tricks
Topic: Simple Linear Gradient
Replies: 4
Views: 1386

Simple Linear Gradient

Left to right linear gradient without multiplication. There's no need to calculate all rows since they are equal(only the first one) function draw_lrgrad(c1 as ulong,c2 as ulong,x as integer,y as integer,_ w as integer,h as integer,sw as integer,dst as ulong ptr)as integer ''''''''''''''''' if c1 = ...