Search found 246 matches
- Thu Jun 19, 2014 3:09 pm
- Forum: General category
- Topic: parameter passing
- Replies: 4
- Views: 8600
parameter passing
Hi, The puzzling is about returning the parameters,if you do this:dim a as integersub test(x as integer)x=10end subtest(a)variable a now contains 10 because a is replaced by x in the sub.This can be passed by using a function for it or by using a static variabledim a as integer,b as integera=10b=asu...
- Sat Jun 14, 2014 8:56 pm
- Forum: General category
- Topic: Functions inside types
- Replies: 2
- Views: 8917
Functions inside types
For what it is worth, I think functions are not fully implanted in types.but it can be used in this way, maybe you can something whit it.``example codetype mytype as button caption="click for color" onclick=getc function getcolor as integer getcolor.result=rg...
- Mon Apr 28, 2014 3:15 pm
- Forum: General category
- Topic: Next Release of FnxBasic?
- Replies: 18
- Views: 34318
Next Release of FnxBasic?
Right now i`m busy with a new fnx basic, more flexible, faster and smaller but that take some time.revstr already exists in fnx it is the function rinstr()so to get the filename you can do:dim fil as stringfil="c:jhjhjlala.jgh"fil=right$(fil,len(fil)-rinstr(fil,""))maybe you mu...
- Wed Apr 16, 2014 3:13 pm
- Forum: General category
- Topic: scope of dim statements
- Replies: 2
- Views: 6815
scope of dim statements
They are independed if you usedthem not already, a global dimmed var in the root of the program overrules the ones in the subs.To keep the global var global you can not use it in the subs.if you have this posibilitydim i as integeri=10sub test(i as intger) i=20 print i `` no acces to glo...
- Sat Mar 22, 2014 4:10 pm
- Forum: examples
- Topic: Browser Object
- Replies: 2
- Views: 7489
Browser Object
Can you go further with something like this?best regards, marco``get default browserdeclare FindExecutable as "FindExecutableA" of "shell32.dll" lpFile As String lpDirectory As String lpResult As string byaddressend declarefunction getdefaultbrowser as string&nb...
- Fri Jan 24, 2014 4:22 pm
- Forum: General category
- Topic: StatusBar Problem????
- Replies: 2
- Views: 5515
StatusBar Problem????
You can do also something like this:Sub Button1_Click() TempString = "HELLO" UpdateStatusPanel``==== adding these lines will do alsomainform.repaintsleep 500``========================== Run ("C:WindowsSystem32NotePad.exe", SW_ShowNormal)&nbs...
- Mon Jan 13, 2014 4:24 pm
- Forum: General category
- Topic: incorrect example program: ledbar.bas ?
- Replies: 3
- Views: 7456
incorrect example program: ledbar.bas ?
Hi, you can rename pointer and test then it should work.Test is internal used as a test for me to solve problems, i can remove it the next update.pointer is a part of a future function to be build in for dynamicly declaration of objects, i `m working with it.I hope this will explane it to you.best r...
- Mon Nov 18, 2013 4:35 pm
- Forum: discbugs
- Topic: "GetClientRect" Of "User32"
- Replies: 1
- Views: 5538
"GetClientRect" Of "User32"
Can you do something with this?``getrect examplerecord RECT Left As Long Top As Long Right As Long Bottom As LongEnd recordDeclare FormRectangle As "GetClientRect" Of "User32" hWnd As Long rc As Rect End Declareobject exampleform as form ...
- Sat Nov 09, 2013 4:45 pm
- Forum: General category
- Topic: Next Release of FnxBasic?
- Replies: 18
- Views: 34318
Next Release of FnxBasic?
Hi, I think you can do it with rinstr().
if you wat the specified character you do c=char$(rinstr(mystring,"test"))
hope this will help?
best regards
if you wat the specified character you do c=char$(rinstr(mystring,"test"))
hope this will help?
best regards
- Wed Nov 06, 2013 3:52 pm
- Forum: General category
- Topic: Next Release of FnxBasic?
- Replies: 18
- Views: 34318
Next Release of FnxBasic?
This year ther become an update, The bugs you mentiont are fixed then, i hope.
I `ve to add some more of the wishlist before the update and prepare and check it.
best regards
I `ve to add some more of the wishlist before the update and prepare and check it.
best regards