Monday, February 9, 2009

Strings

blog,blog .... ... ... ... ...

Part 2 of blogging I guess.

Another day, another reflection. I'm really dumbfounded right now. I really don't know what to type. Haha. It's really bothering me, but I'll finish this anyway I hope.

Since this is a reflection, I'm not going to waste my time and discuss about something that I don't mean about (it's not that I'm saying that others do but..). I just want to discuss something about what I learned.

I learned a whole lot from the past lessons. Yes, I learned about using the Visual Basic 6.0 through the Lucky 7 program and also learned from the if-else then statement but there are things I won't forget: complicated things. Through these recent weeks, I learned more complicated things! Well, only a part of it though. And because of it, I named my blog after it! How cool is that. Have you guessed it already? Yeah I think so. String functions? Haha. Yup, String functions it is. These things were so hard at first. Well, maybe everything in this world is hard at first, but this lesson did twist my mind that it took days for me to understand it. It were like codes randomly placed in the likes of mid,mid,mid,left,right,left... which I didn't understand! Anyway, to show YOU that i understand it already, i'll be doing a lil' bit of a pasali that i'll be calling demo:

Given the following:

A$ = "halat lang, puwede"
B$ = "thank you"
C$ = "argh"
Print Extract "yeah right"

Haha. By the way. I have to tell readers that Alexia made these string functions. Kinakarawan kaya ako eh. But I really enjoyed it! Not like the first time though. Anyway, back to the code shall we?


Print Mid$(B$, 7, 1); Right$(A$, 1); Mid$(A$, 2, 1); Mid$(B$, 2, 1); spc(1); Mid$(C$, 2, 1); "i"; Mid$(C$, 3, 2); Left (B$, 1)

And that's it! It was so easy when I got it. It just takes a lot of logic... and a lot of common sense, which I really didn't get at first (embarassed). But know I already get it, and it's really exciting. I even sometimes use it to pass some secret codes to my classmates just for fun.

And there you have it string functions. "BOW"


---:I---

No comments:

Post a Comment