The concatenation operator is &:
Thanks, that helped a Lot! It was racking my brains, because a previous post said if you want to force a type, declare it as that type. I know
Basic4Android converts to
Java, and
NSBasic/App converts to
Javascript, which are both fairly similiar. I know a bit of Javascript and Java, mainly where they're similiar to
C++, but
Java is still not my language of choice. Folks put down
BASIC for being so simple, but the way I see it. I write software at times on a freelance basis. I write applications for myself that I can use, and sometimes for friends. Why use another language because it's popular, supposed to be super powerful, etc. when I can use a language that allows me to pop out applications quickly that do what I want it to do reliably? I personally Love Pascal, and still use Virtual Pascal for some things. I've seen a pascal compiler (
Pe'pe') for Android that is console only. It's good, but couldn't see using it for anything productive, and console only apps aren't too popular for smart phones! I remember on NSBasic, you could concat anything to pretty much anything using the & operator. Perhaps what threw me off, B4A seems so much more like Visual BASIC, that it just didn't seem like it'd work there too....
Right now, I'm sorta trying to learn as much of the language as possible, and convert my existing apps, adding features that where hard to do in NsBasic (Strangely enough, basic graphics was kinda limited! You had to get the device context of a panel, create a canvas (much like here), then write your code with no auto-completion of the actual graphic commands, and no real documentation of what graphic commands where available! To find out what was available, you had to travel to the webkit documentation on another site, find what commands they allowed and use them with your program. You had no confirmation if the command was right or not until you ran the program. If the command was wrong, your program wouldn't run at all. If the command was right, it would. But there was no circle command, only an arc command, and I couldn't get the stupid thing to draw an arc from 0 to 359 for nothing. Even if I could, you had to moveTo(x,y), then when you drew the arc, it'd draw a line to the edge of the arc, draw the arc, then if you performed a lineTo(x,y), you'd have a pie piece. Not incredibly useful! Something else I've gotta say about
Basic4Android, with
NSBasic/App, I had to send my app to phonegap, send a keystore file to phonegap, unlock the app for the key, which was unlocked for 1 hour. I then had to re-build the app, then download the app to get the release file, then upload that to Android market and Amazon market. Whew! A lot of work. The only benefit was I also had a Windows Phone/Windows 8 app at the same time. With
Basic4Android, I automatically get a signed app every time I test it out! Just upload it from my computer to the appstore! Incredibly easier! I gotta admit, that goes back to my original reason why I tend to stick to BASIC.