Run BASIC
« Search Results »

Welcome Guest. Please Login or Register.
Dec 8, 2009, 5:59pm



Run BASIC
Run BASIC Community Wiki
Easy Web Programming with Run BASIC

Run BASIC :: Search Results
30 Most Recent Posts30 Results Found

Result 1 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Stopped working with IE8 (Read 53 times)
David den Haring
Junior Member
**
member is offline




[homepage]

Joined: Aug 2007
Gender: Male
Posts: 76
Karma: 0
 Re: Stopped working with IE8
« Result #1 Today at 2:46pm »

Does your home server have a static IP address on your local LAN?

I had this sort of problem recently and it wasn't my Internet-facing IP address, but the local LAN address of my server that changed.

I rebooted the server after a Windows update and it was assigned a different IP address by my wireless router which usually doesn't happen. The router, however, was configured to forward to the OLD IP address.

At the time, I was in a hurry, so I just updated the forwarding address in the router setup. The best long term solution, though, is to give the server a static IP address.

David.


Today at 2:20pm, aristarkos wrote:
I never got this working. It was working before, I didn't change anything except the upgrade to IE8. Every RB and router setting is the same as before.
Everytime I use http://www.whatismyip.com/ it shows the same IP address.
Link to Post - Back to Top  IP: Logged

David den Haring
Simple Computing Blog
http://denharing.blogspot.com


Result 2 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Stopped working with IE8 (Read 53 times)
aristarkos
New Member
*
member is offline





Joined: Jan 2009
Gender: Male
Posts: 32
Karma: 0
 Re: Stopped working with IE8
« Result #2 Today at 2:20pm »

I never got this working. It was working before, I didn't change anything except the upgrade to IE8. Every RB and router setting is the same as before.
Everytime I use http://www.whatismyip.com/ it shows the same IP address.
Link to Post - Back to Top  IP: Logged


Result 3 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: this are only a test.... (Read 28 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 Re: this are only a test....
« Result #3 Today at 2:10pm »

Most interesting. I have now come to the conclusion that the problem lies mainly within the way the "DIV" statement is handled.
If I change it to html "<div id='main'>" then put [begin] within the division all is fine. So far.

Branching from the button to [begin] no longer generates an error this way.

And I get the results I want.
Link to Post - Back to Top  IP: Logged


Result 4 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: this are only a test.... (Read 28 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 Re: this are only a test....
« Result #4 Today at 12:32pm »

In this version of the test everything works the way I want except for one thing. Division "abox" is displayed outside of the division "main".

So how do I get "abox" INSIDE of division "main" as intended?

Is this place dead or what?



Code:

dim ask$(35,6)

ask$(1,1)="Who is an amateur operator as defined in Part 97?"
ask$(1,2)="A person named in an amateur operator/primary license grant in the FCC ULS database"
ask$(1,3)="A person who has passed a written license examination."
ask$(1,4)="The person named on the FCC Form 605 application"
ask$(1,5)="A person holding a Resticted Operating Permit"
ask$(1,6)="A"

ask$(2,1)="What is the ITU?"
ask$(2,2)="The International Telecommunications Utility"
ask$(2,3)="The International Telephone Union"
ask$(2,4)="The International Telecommunication Union"
ask$(2,5)="The International Technology Union"
ask$(2,6)="B"


cssid #main,"{width:50em; height:auto; border:solid 2px #f00; margin:auto;}"
cssid #box1,"{width:40em; border:solid 2px #00f; margin:auto;
margin-bottom:1em; background:#CFF; padding:10px;}"

cssid #box2,"{width:98%; height:30em; border:solid 2px #0f0;
margin:auto; margin-bottom:1em; padding:0;}"

cssid #box21,"{ border:solid 2px #F00; height:6em; margin:1em;}"
cssid #box2a,"{float:left; width:3em; height:4em; background:#0f0; padding:20px 0 0 6px;}"
cssid #box2b,"{float:left; width:35em; height:4em; background:#FFA; padding:10px; margin-left:1em;}"

cssid #pick,"{clear:left;}"

num=1


div main

div box1

print ask$(num,1)

end div

div box2

for i=1 to 4
div box21
div box2a
a$=chr$(64+i)
button #b1,a$,check
#b1 setkey(a$)
end div

div box2b
print ask$(num,i+1)
end div
end div
next i


'end of green box
end div



'end of main
end div

wait

sub check handle$
print

if EventKey$>"" then
if num<1 then num=1
select case EventKey$
case "A","B","C","D"
cssid #box1,"{ display:none; }"
cssid #box2,"{ display:none; }"

cssid #abox,"{width:40em; border:solid 2px #00f; margin:auto;
margin-bottom:1em; background:#CFF; padding:10px;}"

div abox
print ask$(num,1)

end div

end select

end if

end sub



wait

Link to Post - Back to Top  IP: Logged


Result 5 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: this are only a test.... (Read 28 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 this are only a test....
« Result #5 Yesterday at 3:06am »

The heart of this test I have worked out. A question appears and four answers, with buttons appear below it.

When you click "next", the given answers all disappear nicely as they should.

What I want to do now is, to show the proper answer only inside the green bordered box.

Perhaps using a function to show one or the other?
Ideas welcome.




Code:
dim ask$(35,6)

ask$(1,1)="Who is an amateur operator as defined in Part 97?"
ask$(1,2)="A person named in an amateur operator/primary license grant in the FCC ULS database"
ask$(1,3)="A person who has passed a written license examination."
ask$(1,4)="The person named on the FCC Form 605 application"
ask$(1,5)="A person holding a Resticted Operating Permit"
ask$(1,6)="A"

ask$(2,1)="What is the ITU?"
ask$(2,2)="The International Telecommunications Utility"
ask$(2,3)="The International Telephone Union"
ask$(2,4)="The International Telecommunication Union"
ask$(2,5)="The International Technology Union"
ask$(2,6)="B"


global num,rt

cssid #main,"{width:50em; height:auto; border:solid 2px #f00; margin:auto;}"

num=0

div main

while num<5
num=num+1
print num
call part1

wend

end div


wait

sub part1

cssid #box1,"{width:25em; height:auto; margin:1em; border:solid 2px #00f;
background:#CFF; padding:1em; }"
div box1
' holds the question
print ask$(num,1)


end div

cssid #box2,"{ clear:left; width:46em; height:auto; padding:5px;
border:solid 2px #0f0; margin:1em; }"
cssid #qa,"{ height:4em; border:solid 2px #00f; padding:5px; margin-bottom:5px;}"
cssid #but,"{ float:left; background:#0f0; width:3em; height:2em; }"
cssid #show1,"{float:left; margin-left:1em; padding:10px; background:#ffa; width:35em;}"

cssid #box3, "{padding:2em;}"

div box2

div qa
div but
button #b1,"A",[check]
#b1 setkey("A")
end div

div show1
print ask$(num,2)
end div
end div

div qa
div but
button #b1,"B",[check]
#b1 setkey("B")
end div

div show1
print ask$(num,3)
end div
end div

div qa
div but
button #b1,"C",[check]
#b1 setkey("C")
end div

div show1
print ask$(num,4)
end div
end div

div qa
div but
button #b1,"D",[check]
#b1 setkey("D")
end div

div show1
print ask$(num,5)
end div
end div



end div
wait


div box3

[check2]
If EventKey$=ask$(1,6) then
print "correct"

else
print "Sorry, the correct answer is ";ask$(num,6)
end if

print


rite$=ask$(1,6)
if rite$="A" then rt=1
if rite$="B" then rt=2
if rite$="C" then rt=3
if rite$="D" then rt=4

button #b2, "next",donext
#b2 setkey("next")
button #b2, "back",[check]
#b2 setkey("back")
button #b2, "skip",[check]
#b2 setkey("skip")
button #b2, "restart",[check]
#b2 setkey("restart")

wait

end div

end sub


[check]

goto [check2]

wait

sub donext handle$

cssid #qa,"{display:none;}"
cssid #box3, "{display:none;}"
cssid #box4,"{ width:46em; height:4em; padding:5px;
border:solid 2px #0f0; margin:1em; }"
print ask$(num,rt)
end sub


Link to Post - Back to Top  IP: Logged


Result 6 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: most interesting chain of events (Read 13 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 most interesting chain of events
« Result #6 on Dec 6, 2009, 11:36pm »

Can't quite figure this one out but doesn't really matter as it works.
When you click the button programming is diverted to the block named "check". All I have it doing is sending that event back to another block "check2", inside the main division.

If I put the print "hello" item in "check" nothing is printed.
Very very strange.

Code:
cssid #main,"{width:50em; height:50em; border:solid 2px #f00; margin:auto;}"

num=0

div main

while num<5
num=num+1
print num
call part1

wend

end div


wait

sub part1

cssid #box1,"{width:25em; margin:1em; border:solid 2px #00f;
background:#CFF; padding:1em; }"
div box1
' holds the question
print "what is the question?"


end div

cssid #box2,"{ clear:left; width:45em; height:auto; padding:1em;
border:solid 2px #0f0; margin:1em; }"
cssid #qa,"{ height:4em;}"
cssid #but,"{float:left; background:#0f0; width:3em; height:2em; margin:0; }"
cssid #show1,"{float:left; margin-left:1em; background:#ffa; width:40em;}"


div box2
' holds buttons and answers


div qa

div but
button #b1,"A",[check]
#b1 setkey("A")
end div


div show1
print "why? why? why? why? why? why? why? why? why? why? why? why? why? why? why? why? why? why? why? why?"
end div

div space
end div




wait
end div

end div


div box3

[check2]
print "hello"



end div

end sub


[check]

goto [check2]

wait

Link to Post - Back to Top  IP: Logged


Result 7 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: code don't show response (Read 15 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 code don't show response
« Result #7 on Dec 6, 2009, 4:21pm »

When I run the code and click on a button, the response is supposed to be directed to [check] then print "hello".
It does not.
Why?

Also, the division "show" is not showing any attributes I set for it.
No background, no border.




Code:

cssid #main,"{width:40em; height:auto; border:solid 2px #f00; margin:auto;}"

num=0

div main

while num<5
num=num+1
print num
call part1

wend

end div


wait

sub part1

cssid #box1,"{width:25em; margin:1em; border:solid 2px #00f;
background:#CFF; padding:1em; }"
div box1
' holds the question
print "what is the question?"


end div

cssid #box2,"{ width:35em; border:solid 2px #0f0; padding:1em; margin: 0 1em;}"
cssid #qa,"{border:solid 2px #f00; padding:1em; margin-bottom:1em;}"
cssid #but,"{width:5em; padding:5px; float:left;}"
cssid #show,"{width:25em; background:#ffa; border:solid 2px #0f0;}"


div box2
' holds buttons and answers


div qa

div but
button #b1,"A",[check]
#b1 setkey("A")
end div


div show
print "why?"
end div

end div

div qa
div but
button #b1,"B",[check]
#b1 setkey("B")
end div

cssid #show,"{}"
div show
print "why?"
end div


end div

div qa

div but
button #b1,"C",[check]
#b1 setkey("C")
end div

cssid #show,"{}"
div show
print "why?"
end div

end div

div qa

div but
button #b1,"D",[check]
#b1 setkey("D")
end div

cssid #show,"{}"
div show
print "why?"
end div

end div

end div

wait

div box3




end div

end sub


[check]

print "hello"

wait


Link to Post - Back to Top  IP: Logged


Result 8 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Need to understand.. for security reasons (Read 34 times)
votan
Senior Member
****
member is offline





Joined: Jul 2008
Gender: Male
Posts: 300
Karma: 3
 Re: Need to understand.. for security reasons
« Result #8 on Dec 6, 2009, 7:06am »

Session timeout is set to 10 minutes.... But regardless to the session timout being set to 1 minute or 60 minutes, I would need to be able to obtain the actual IP at anytime and any action... not just upon initial connect / compile.
« Last Edit: Dec 6, 2009, 8:58am by votan »Link to Post - Back to Top  IP: Logged


Result 9 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Need to understand.. for security reasons (Read 34 times)
StefanPendl
Global Moderator
*****
member is offline

[avatar]

Run for BASIC ...



Joined: Aug 2007
Gender: Male
Posts: 555
Location: Austria
Karma: 4
 Re: Need to understand.. for security reasons
« Result #9 on Dec 6, 2009, 4:58am »

What is your session timeout set to?

_s=xsDCTLhFUvqyPYeo ... this is the unique session key
_k=kQecHjQK ................ don't know exactly what this is, but seems to be related to the LINK command, I think
« Last Edit: Dec 6, 2009, 4:59am by StefanPendl »Link to Post - Back to Top  IP: Logged

---
Stefan


Any code I post can be used by others in their own projects, there is no need to ask for permission, just give credit if you like

Run BASIC 1.01, FF3.5 (IE8), Windows Vista Home Premium SP2, AMD Turion X2 RM-70 2GHz, 4GB RAM


Result 10 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Need to understand.. for security reasons (Read 34 times)
votan
Senior Member
****
member is offline





Joined: Jul 2008
Gender: Male
Posts: 300
Karma: 3
 Need to understand.. for security reasons
« Result #10 on Dec 6, 2009, 3:54am »

I'm trying to understand what exactly RB is doing in the following case.....
I have her a little test program that just does not do anything else but showing the UserAddress$ with a link back to itself.
Code:
[start]
cls
print UserAddress$
link #reload, " Reload ", [start]
wait

When I click reload, it of cause just returns the same address again and again.
But, when I copy the link of the compiled project... eg something like this
http://www.somewebserver.com:8080/seaside/go/runbasicpersonal?_s=xsDCTLhFUvqyPYeo&_k=kQecHjQK
and then open this link in a browser on a far away computer (other country via RDP and so a different IP), it still shows me the same IP of my home machine.. .even after hitting refresh.
Any ideas? Maybe even a workaround? Need to be able to always obtain the current IP even when using links in a compiled project.

Well, just experimented a bit more... seems like the UserAddress$ is captured only once when the project is being compiled and so is not being recaptured after that.
I would like to request that the useraddress can be reacquired dynamically, so that it is possible to verify the IP continously in a compiled project.
« Last Edit: Dec 6, 2009, 4:09am by votan »Link to Post - Back to Top  IP: Logged


Result 11 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Any interest in a new RB hosting service (Read 87 times)
David den Haring
Junior Member
**
member is offline




[homepage]

Joined: Aug 2007
Gender: Male
Posts: 76
Karma: 0
 Re: Any interest in a new RB hosting service
« Result #11 on Dec 5, 2009, 11:28pm »

I won't have mySQL or PHP ready for the January roll out, but it is certainly something to consider because Carl is planning to add mySQL support to a future version of Run Basic.



Dec 5, 2009, 1:52am, ekvirtanen wrote:
Hi David.

Im pleased to read your reply. Do you think that service could support php+mysql also, since for me, they have important role in my websites.
Link to Post - Back to Top  IP: Logged

David den Haring
Simple Computing Blog
http://denharing.blogspot.com


Result 12 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: float problem (Read 22 times)
StefanPendl
Global Moderator
*****
member is offline

[avatar]

Run for BASIC ...



Joined: Aug 2007
Gender: Male
Posts: 555
Location: Austria
Karma: 4
 Re: float problem
« Result #12 on Dec 5, 2009, 3:14pm »

Since you are using a sub as the event handler you could get rid of SetKey.


cssid #main,"{width:40em; height:30em; border:solid 2px #f00;}"

div main
call part1
end div
wait

sub part1
cssid #but,"{ clear:left; float:left; width:3em; margin:1em; background:#0f0; padding:5px;}"
cssid #answer,"{float:left; width:25em; background:#ffa;border:solid 2px #00f; padding:5px;}"

div but
button #A,"A",check
end div

div answer
print "one"
end div

div but
button #B,"B",check
end div

div but
button #C,"C",check
end div

div but
button #D,"D",check
end div

wait
end sub

sub check handle$
print
print "you chose "; right$(handle$,1)
end sub

« Last Edit: Dec 5, 2009, 3:16pm by StefanPendl »Link to Post - Back to Top  IP: Logged

---
Stefan


Any code I post can be used by others in their own projects, there is no need to ask for permission, just give credit if you like

Run BASIC 1.01, FF3.5 (IE8), Windows Vista Home Premium SP2, AMD Turion X2 RM-70 2GHz, 4GB RAM


Result 13 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: float problem (Read 22 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 Re: float problem
« Result #13 on Dec 5, 2009, 1:26pm »

Sheeeesh. Not thinking straight again. Of course it shows that way as I had nested divisions.
Seperate the two and I get the right display.

10 slap
20 goto 10
Link to Post - Back to Top  IP: Logged


Result 14 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: float problem (Read 22 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 float problem
« Result #14 on Dec 5, 2009, 1:16pm »

When the code is run, you will see the div answer falls below the button and starts within the div but.
This is not correct. Div answer should begin just to the right of div but.

What's the fix?




Code:
cssid #main,"{width:40em; height:30em; border:solid 2px #f00;}"

div main
call part1


end div


wait

sub part1

cssid #but,"{ clear:left; float:left; width:3em; margin:1em; background:#0f0; padding:5px;}"
cssid #answer,"{float:left; width:25em; background:#ffa;
border:solid 2px #00f; padding:5px;}"
div but
button #b1,"A",check
#b1 setkey("A")

div answer
print "one"

end div

end div

div but
button #b1,"B",check
#b1 setkey("B")

end div

div but
button #b1,"C",check
#b1 setkey("C")

end div

div but
button #b1,"D",check
#b1 setkey("D")

end div

wait
end sub

sub check handle$
print
print "you chose ";EventKey$

end sub
Link to Post - Back to Top  IP: Logged


Result 15 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: wishlist: clear div contents (Read 30 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 Re: wishlist: clear div contents
« Result #15 on Dec 5, 2009, 1:10pm »

There is no "Can not", there is only "Do".
Actually, RB does have a simple way of doing it which involves the CSS.
A simple command would make it a whole lot easier.
Research "Display" in CSS.
Link to Post - Back to Top  IP: Logged


Result 16 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Refresher course: checking buttons (Read 29 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 Re: solved - Refresher course: checking buttons
« Result #16 on Dec 5, 2009, 12:17pm »

The simple solution is the placement of the "Wait".
Which is directly after the buttons.
That causes the printing done in "check" to appear within the "main" division, NOT outside of it.



Code:
cssid #main,"{width:30em; height:30em; border:solid 2px #f00;}"

div main
call part1


end div


wait

sub part1

button #b1,"A",check
#b1 setkey("A")
button #b1,"B",check
#b1 setkey("B")
button #b1,"C",check
#b1 setkey("C")
button #b1,"D",check
#b1 setkey("D")

wait
end sub

sub check handle$
print
print "you chose ";EventKey$

end sub
Link to Post - Back to Top  IP: Logged


Result 17 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: wishlist: clear div contents (Read 30 times)
ekvirtanen
Full Member
***
member is offline



Ubuntu 9.10 + RB101

[icq] [msn]

Joined: Jan 2008
Gender: Male
Posts: 101
Location: Finland
Karma: 0
 Re: wishlist: clear div contents
« Result #17 on Dec 5, 2009, 12:04pm »

If i understand right, you do want to clear one div, with out refreshing page?
If so, then it is not possible with RB, but with Ajax or related method.
Link to Post - Back to Top  IP: Logged

My home
BasicProgramming.Org
ASCII-World.Com


Result 18 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: wishlist: clear div contents (Read 30 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 wishlist: clear div contents
« Result #18 on Dec 5, 2009, 11:44am »

Like cls clears and refreshes the screen, ClrDiv would refresh the contents of the division only. Not affecting any other section of the screen.

Link to Post - Back to Top  IP: Logged


Result 19 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Refresher course: checking buttons (Read 29 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 Re: Refresher course: checking buttons
« Result #19 on Dec 5, 2009, 11:40am »

thanks for the efforts, but both examples still print the replies OUTSIDE of the main box.
I see no reason why the branching can't be done within the "main" division. But I'll still play around with it and see how many variations I can come up with.

Link to Post - Back to Top  IP: Logged


Result 20 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: XML parser problems (Read 22 times)
votan
Senior Member
****
member is offline





Joined: Jul 2008
Gender: Male
Posts: 300
Karma: 3
 Re: XML parser problems
« Result #20 on Dec 5, 2009, 9:57am »

Ah, cool, thanx! :)
Link to Post - Back to Top  IP: Logged


Result 21 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: XML parser problems (Read 22 times)
StefanPendl
Global Moderator
*****
member is offline

[avatar]

Run for BASIC ...



Joined: Aug 2007
Gender: Male
Posts: 555
Location: Austria
Karma: 4
 Re: XML parser problems
« Result #21 on Dec 5, 2009, 4:26am »

The ampersand must be encoded as text ( &amp; ) or any XML validation or parser will fail.

The ampersand is the beginning of the XML control codes, which are terminated by a semicolon.

Notepad++ with the XML Tools plugin offers a XML validation tool.
« Last Edit: Dec 5, 2009, 4:29am by StefanPendl »Link to Post - Back to Top  IP: Logged

---
Stefan


Any code I post can be used by others in their own projects, there is no need to ask for permission, just give credit if you like

Run BASIC 1.01, FF3.5 (IE8), Windows Vista Home Premium SP2, AMD Turion X2 RM-70 2GHz, 4GB RAM


Result 22 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Refresher course: checking buttons (Read 29 times)
StefanPendl
Global Moderator
*****
member is offline

[avatar]

Run for BASIC ...



Joined: Aug 2007
Gender: Male
Posts: 555
Location: Austria
Karma: 4
 Re: Refresher course: checking buttons
« Result #22 on Dec 5, 2009, 4:19am »

The following code will print yes.


global reply$
cssid #main,"{width:30em; height:30em; border:solid 2px #f00;}"

[begin]
call main
wait

sub main
' cls ' uncomment to display div only once
div main
button #b1,"A",check
#b1 setkey("A")
if EventKey$<>"" and EventKey$=reply$ then print "yes"
end div

print "Main .... "; EventKey$
print "Reply ... "; reply$
end sub

sub check handle$
print "Sub ..... "; EventKey$
reply$=EventKey$

call main
end sub
Link to Post - Back to Top  IP: Logged

---
Stefan


Any code I post can be used by others in their own projects, there is no need to ask for permission, just give credit if you like

Run BASIC 1.01, FF3.5 (IE8), Windows Vista Home Premium SP2, AMD Turion X2 RM-70 2GHz, 4GB RAM


Result 23 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Refresher course: checking buttons (Read 29 times)
StefanPendl
Global Moderator
*****
member is offline

[avatar]

Run for BASIC ...



Joined: Aug 2007
Gender: Male
Posts: 555
Location: Austria
Karma: 4
 Re: Refresher course: checking buttons
« Result #23 on Dec 5, 2009, 4:15am »


global reply$
cssid #main,"{width:30em; height:30em; border:solid 2px #f00;}"
[begin]
cls

div main
button #b1,"A",check
#b1 setkey("A")
if EventKey$<>"" and EventKey$=reply$ then print "yes"
end div

print "Main .... "; EventKey$
print "Reply ... "; reply$
wait

sub check handle$
print "Sub ..... "; EventKey$
reply$=EventKey$
end sub


The program executes all lines till it hits the WAIT command, where it sits waiting for button to be pushed.
If the button gets pushed, the event handler sub is executed and the program flow is returned to the WAIT command.

The main program will never be executed another time.

The reply$ variable must be global, since regular variables inside of procedures are not visible to other parts of the program.

The not equal operator is <>.
« Last Edit: Dec 5, 2009, 4:21am by StefanPendl »Link to Post - Back to Top  IP: Logged

---
Stefan


Any code I post can be used by others in their own projects, there is no need to ask for permission, just give credit if you like

Run BASIC 1.01, FF3.5 (IE8), Windows Vista Home Premium SP2, AMD Turion X2 RM-70 2GHz, 4GB RAM


Result 24 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: XML parser problems (Read 22 times)
votan
Senior Member
****
member is offline





Joined: Jul 2008
Gender: Male
Posts: 300
Karma: 3
 XML parser problems
« Result #24 on Dec 5, 2009, 2:40am »

I'm kind of new to xml.. but is it normal, that the xml parser quits working when there is the "&" character in the xml file?
RB reports "semicolon expected"
Link to Post - Back to Top  IP: Logged


Result 25 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Could Shoptalk support RB projects? (Read 67 times)
ekvirtanen
Full Member
***
member is offline



Ubuntu 9.10 + RB101

[icq] [msn]

Joined: Jan 2008
Gender: Male
Posts: 101
Location: Finland
Karma: 0
 Re: Could Shoptalk support RB projects?
« Result #25 on Dec 5, 2009, 1:54am »

Hi votan.

I just entered here, and first post i checked was the same you told here. I agree with you that rb-main site needs some new and fresh look.
Link to Post - Back to Top  IP: Logged

My home
BasicProgramming.Org
ASCII-World.Com


Result 26 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Any interest in a new RB hosting service (Read 87 times)
ekvirtanen
Full Member
***
member is offline



Ubuntu 9.10 + RB101

[icq] [msn]

Joined: Jan 2008
Gender: Male
Posts: 101
Location: Finland
Karma: 0
 Re: Any interest in a new RB hosting service
« Result #26 on Dec 5, 2009, 1:52am »

Hi David.

Im pleased to read your reply. Do you think that service could support php+mysql also, since for me, they have important role in my websites.
Link to Post - Back to Top  IP: Logged

My home
BasicProgramming.Org
ASCII-World.Com


Result 27 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Could Shoptalk support RB projects? (Read 67 times)
votan
Senior Member
****
member is offline





Joined: Jul 2008
Gender: Male
Posts: 300
Karma: 3
 Re: Could Shoptalk support RB projects?
« Result #27 on Dec 5, 2009, 12:54am »

@ekvirtanen
Guess you've seen already.... David den Haring is planing on opening a new RB hosting service soon..... so this should be solved soon! :)
http://runbasic.proboards.com/index.cgi?....ead=1311&page=1

@Carl

Dec 2, 2009, 12:00am, Carl Gundel - admin wrote:
I
I realize that revving up my end of things certainly does help, and I will definitely put some time and energy into RB pretty soon now.

We do need a new release.

Yes, that seems to be the main issue. The website hasn't been updated for a year or so and makes the RB Project look pretty much abandoned.... besides the look of the site what dos not really reflect the possibilities of RB.
It would be more than cool to see a new version coming up sometimes soon! :) And please take a look at the Tracker http://runbasic.wikispaces.com/Tracker for user-suggestions. Would be nice to see at least some of the requested features in the next release.
Link to Post - Back to Top  IP: Logged


Result 28 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Refresher course: checking buttons (Read 29 times)
rich357
Senior Member
****
member is offline





Joined: Nov 2007
Gender: Male
Posts: 320
Karma: 2
 Refresher course: checking buttons
« Result #28 on Dec 4, 2009, 10:26pm »

In the following simple code, why does "yes" never show up?
When button is clicked, code is directed to the subroutine.
The two lines get printed outside of the box as expected.
But the expected print of "yes" never happens.
Tried with a global and that failed.



Code:


cssid #main,"{width:30em; height:30em; border:solid 2px #f00;}"
[begin]

div main

button #b1,"A",check
#b1 setkey("A")
if EventKey$>"" and EventKey$=reply$ then print "yes"

end div


wait

sub check handle$
print "ok"
print EventKey$
reply$=EventKey$

end sub

wait

Link to Post - Back to Top  IP: Logged


Result 29 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Any interest in a new RB hosting service (Read 87 times)
David den Haring
Junior Member
**
member is offline




[homepage]

Joined: Aug 2007
Gender: Male
Posts: 76
Karma: 0
 Re: Any interest in a new RB hosting service
« Result #29 on Dec 4, 2009, 10:12pm »

Yes, I'm planning to bring a new Run Basic hosting service online early next month. Most of the pieces are already in place. I'm working on some technical issues and doing testing.

I'll post details here as things progress. Stay tuned!



Nov 29, 2009, 4:28am, ekvirtanen wrote:
Is there anything new information about Your plan David (or anyone else perhaps)?

I am planning few new features to basicprogramming.org, and if there is RB hosting available i wil glady use it, but if not, im forced to use php.
Link to Post - Back to Top  IP: Logged

David den Haring
Simple Computing Blog
http://denharing.blogspot.com


Result 30 of 30:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Why RBASIC don't recognize...? (Read 59 times)
kokenge
Full Member
***
member is offline





Joined: Jan 2009
Gender: Male
Posts: 153
Karma: 2
 Re: Why RBASIC don't recognize...?
« Result #30 on Dec 2, 2009, 12:21pm »

If you have PHP running, this one works well.
http://sourceforge.net/projects/sqlitemanager/

If you want one running in Run Basic you may want to go here.
http://runbasic.proboards.com/index.cgi?....hread=1216#6558


Do a google search on SQLite manager.
There are several available. They all have to follow the SQLite rules when creating a DB. So they all should work with RunBasic.

HTH..


Link to Post - Back to Top  IP: Logged



Run BASIC Wiki
Wikispaces
Google
Webrunbasic.proboards.com
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!