Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Beta Tests / Re: GUI in purely GLBasic
« Last post by Quentin on 2018-Dec-14 »
hmmm, guess it will be hard to find without a working example.
I tested INSTR function with some examples and everything looks good.

Did you already try a DEBUG output within this function?

e.g.
Code: GLBasic [Select]
        FUNCTION search_table_partial:start,c,param$
                LOCAL row = -1,length = BOUNDS(self.contents[],0) - 1,ins = -1
                IF start < length
                        FOR i = start TO length
DEBUG "search: " + param$ + " - search for: " + self.contents[i][c].sval$ + "\n"
                                ins = INSTR(param$,self.contents[i][c].sval$)
                                IF ins > -1
                                        row = i
                                        RETURN i
                                        BREAK
                                ENDIF
                        NEXT
                        RETURN row
                ENDIF
                RETURN -1
        ENDFUNCTION
 
22
Beta Tests / Re: GUI in purely GLBasic
« Last post by Belnivista on 2018-Dec-14 »
hi,
i tried getting as much as possible info to show the problem. please ask if something is not clear enough. it helps finally asking someone in the know for assistance. i am the only person doing programming between my friends and fam. :(
23
Beta Tests / Re: GUI in purely GLBasic
« Last post by Belnivista on 2018-Dec-14 »
Thank you Quentin. Will do
24
Beta Tests / Re: GUI in purely GLBasic
« Last post by Quentin on 2018-Dec-14 »
I also need to wait until evening for testing. Would be good if you can provide a small example, under which circumstances INSTR is not working correctly.
25
Beta Tests / Re: GUI in purely GLBasic
« Last post by Belnivista on 2018-Dec-14 »
Hi,
Where I made the function in the Ttable type to search the array it works when I search by department but not the rest. I am not currently at the computer to reply with the exact location of my function, but will do later in the afternoon when I get home. You are more than welcome to download everything have a look, even improve and use. I need the program done by end of January,  but got stuck with my search function.

I made an spreadsheet array that accepts the searched array values, but only the one gets searched everytime. In the point of sale you need to be able to search the stock array to get a grouping by category. The same search function works great when i used it on the spreadsheet page to calculate stock prices etc, but it just dont want to work when I use it in this one instance.


I hope i explained good enough... as i said, i get home later and can go through it in more details.


Thanks!!!
26
Beta Tests / Re: GUI in purely GLBasic
« Last post by Quentin on 2018-Dec-14 »
what's the problem with INSTR function?
27
Beta Tests / Re: GUI in purely GLBasic
« Last post by Belnivista on 2018-Dec-14 »
this following file needs to be called :   nicha_settings.ini
media files .ini  and .txt in project folder like normal created glb project. there should be no problems in loading and compiling.

my question is around the native instr function. if theres anyone that is willing to help me, It will be greatly appreciated! i have hit a mind block because of a instr function.
 :noggin:
28
Beta Tests / Re: GUI in purely GLBasic
« Last post by Belnivista on 2018-Dec-14 »
just one more to go  :giveup:
29
Beta Tests / Re: GUI in purely GLBasic
« Last post by Belnivista on 2018-Dec-14 »
just a little more to follow then done :nw:
30
Beta Tests / GUI in purely GLBasic
« Last post by Belnivista on 2018-Dec-14 »
a few more to follow for project nicha.
Pages: 1 2 [3] 4 5 ... 10