[nfbcs] quick question on strings

Jorge Paez jorgeapaez1994 at gmail.com
Tue Mar 10 16:07:34 UTC 2015


Hi.
Thank you everyone for your suggestions.
Just wanted to let you all know I was able to fix the code finally, by
eliminating the second get in the alert portion of the code and fixing
some punctuation errors with the quotes and camas.
Here's the way it ended up.


void main()
{
string get; string my_name="Amy";

alert("Hello", "I am " + my_name+  ",a BGT script!");
}



Thanks.


Jorge


On 3/9/15, Graham Mehl via nfbcs <nfbcs at nfbnet.org> wrote:
> Hello George,
> You probably are getting compile errors on this line of yours:
> alert("Hello", "I am " + get string my_name+  ",a BGT script!");
> The line of code you want probably should look like:
> alert("Hello", "I am " + my_name+ ",a BGT script!");
>
> the line that is:
> String get;
> is not needed because the variable 'get' is not used any where in your
> program with my recommended changes.
>
> --
> Graham
> blind at trailstone.com
>
> -----Original Message-----
> To: nfbcs at nfbnet.org
>
> Date: Mon, 9 Mar 2015 07:09:11 -0400
> From: Jorge Paez <jorgeapaez1994 at gmail.com>
> To: NFB in Computer Science Mailing List <nfbcs at nfbnet.org>
> Subject:
> Message-ID:
> 	<CAA+vbPupyF+8qLSQoQyzgziN8ApxUv5pxDGzdTXcH9EU_xi8sw at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi all:
> OK, so apart from learning several web related languages I'm also working
> on
> learning the BGT gaming engine from Blastbay.
> Its a freeware engine for creating audio games which is built on a script
> that apparently is loosely built on C++ according to the programmer behind
> it.
> Anyway, here's my question.
> I'm working on tweeking the beginner "hello script" so to speak.
> This is the hello script the way they teach It in the documentation.
>
> void main()
> {
> alert("Hello", "I am a BGT script!");
> }
>
> What I'm trying to do is just use that and learn a couple of things from
> that by doing minor tweeks which is how I teach myself code.
> Basically what I want to do here is give the script a name, so it'll say
> "hello, my name is Amy, and I'm a BGT script!" kind of following the way
> that synths introduce themselves.
> This text would be printed on the screen in the form of a dialogue box the
> same way the first script does it.
> I created a naming string and then I'm trying to get that incorporated into
> the message but so far the engine keeps returning me errors.
> Any ideas?
> The code as I have it right now is below.
>
> void main()
> {
> string get; string my_name="Amy";
>
> alert("Hello", "I am " + get string my_name+  ",a BGT script!"); }
>
>
> Any suggestions?
>
> Thanks,
>
> Jorge
>
>
>
>
>
>
> --
> Thank you.
>
>
>
>
> Jorge A. Paez
>
> LinkedIn: http://www.linkedin.com/in/jorgeapaez
>
> Elance page: http://jorgeapaez1994.elance.com
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> nfbcs mailing list
> nfbcs at nfbnet.org
> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
>
>
> ------------------------------
>
> End of nfbcs Digest, Vol 130, Issue 6
> *************************************
>
>
> _______________________________________________
> nfbcs mailing list
> nfbcs at nfbnet.org
> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
> To unsubscribe, change your list options or get your account info for
> nfbcs:
> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/jorgeapaez1994%40gmail.com
>


-- 
Thank you.




Jorge A. Paez

LinkedIn: http://www.linkedin.com/in/jorgeapaez

Elance page: http://jorgeapaez1994.elance.com




More information about the NFBCS mailing list