-
Posts
231 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by iyeru42
-
-
Yeah, although my HTML won't be valid anymore if I do so, but HTML will be happy nevertheless.
-
I'm trying to get the output to be all on one line for each entry. However, currently it is coded to put each part of an entry on a new line.
Structure Student Dim firstName As String Dim lastName As String Dim phoneNum As String Dim examAvg As Double Dim examGrade As String End Structure Dim anStudent As Student Dim studentInfo As New ArrayList Dim index As Integer Sub Main() readFiles() writeData() Console.ReadLine() End Sub Sub readFiles() Dim stuFile As New StreamReader("..\student.txt") Dim tempArray() As String Do Until stuFile.Peek = -1 tempArray = Split(stuFile.ReadLine, ",") anStudent.firstName = tempArray(0) anStudent.lastName = tempArray(1) anStudent.phoneNum = tempArray(2) anStudent.examAvg = Convert.ToDouble(tempArray(3)) If (anStudent.examAvg > 89.9) Then anStudent.examGrade = "A" ElseIf (anStudent.examAvg > 79.9 AndAlso anStudent.examAvg < 89.9) Then anStudent.examGrade = "B" ElseIf (anStudent.examAvg > 69.9 AndAlso anStudent.examAvg < 79.9) Then anStudent.examGrade = "C" ElseIf (anStudent.examAvg > 59.9 AndAlso anStudent.examAvg < 69.9) Then anStudent.examGrade = "D" ElseIf (anStudent.examAvg < 59.9) Then anStudent.examGrade = "F" End If For index = 0 To tempArray.Length - 1 studentInfo.Add(tempArray(index)) Next studentInfo.Add(anStudent.examGrade) Loop End Sub Sub writeData() Console.WriteLine("Student Grade Report: 11/29/2006") Console.WriteLine("How to read this screen:") Console.WriteLine("Name : Grade Average : Grade") Console.WriteLine("") For Each student As String In studentInfo Console.WriteLine(student) Next End Sub
Example of what it outputs currently:
J.Johnson123-123491.2A
And an example of how I WANT it to output:
J.Johnson 91.2 AB
I also need the If/Else statement added for AB.
-
SQL <> MySQL
in SQL
Well, I always thought MySQL was different than SQL because some of the stuff in MySQL can't be used in SQL (for queries.)Well, for starters, SQL is a type of language (Structured Query Language) that is used to query databases whereas MySQL is a database management system that allows you to create databases. You would use SQL to run queries against MySQL databases. -
Module examscores Structure Student Dim firstName As String Dim lastName As String Dim phoneNum As String Dim examAvg As String End Structure Dim anStudent As Student Dim studentInfo As New ArrayList Sub Main() readFiles() writeData() End Sub Sub readFiles() Dim stuFile As New StreamReader("..\student.txt") Dim tempArray() As String Do Until stuFile.Peek = -1 tempArray = Split(stuFile.ReadLine, ",") anStudent.firstName = tempArray(0) anStudent.lastName = tempArray(1) anStudent.phoneNum = tempArray(2) anStudent.examAvg = tempArray(3) Loop End Sub Sub writeData() Console.WriteLine("Student Grade Report: 11/29/2006") Console.WriteLine("How to read this screen:") Console.WriteLine("Name Grade Average Grade") Console.WriteLine(anStudent.firstName & " " & anStudent.lastName & " : " & anStudent.examAvg) End Sub
Dim stuFile As New StreamReader("..\student.txt") says there's a problem:Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.I found out the problem, network drive issues.
-
SQL <> MySQL
in SQL
I was wondering what the differences were between the two.
-
I was just wondering if JavaScript could manipulate Flash Movies. If not, I already know PHP can manipulate SWFs (See SWF* functions in php.net's function index.)
-
I've been wondering this since I first heard about XHTML a few years back. But what exactly does XHTML allow me to do that HTML cannot? (I can already create custom tags with CSS/HTML, it's not that hard. I also can use PHP on top of that to do preg_replace for any DB information.)
-
Sometimes conditional comments won't work. As we saw in another thread.
-
Probably use a negative number rather than a positive number for the level1 part. Or, push forward level2 beyond level1 with a fairly large timeout.
-
This is why we have NVU or HTML-Kit.
-
No, but it allows nested tags that will eventually use JS.HTML does not allow nested FORMs. -
There's also Paint.NET for WinXP users. Believe me, GIMP has nothing on Photoshop (Nor does Paint.Net.)
-
Text needs an invisible background (On the "Enter My Flash Website") so we don't need to hover over and click each individual character. A preloader should invoke after you enter the site. Because it takes a minute or two (believe me, I know) on T1. By the way, your e-mail is safe on flash, unless bots can now read flash files.Check Here for a preloader tutorial of mine. Apparently w3schools.com doesn't allow attachments.
-
No, because you can't have two onloads on the same page. Unless you set a timeout in a certain manner.
setimeout(level2)setimeout(level1)
where the second event would appear before the first rather than in a row.
-
Well, you could have nested forms if they have different names and there's only one submit button AND if the topmost form doesn't use a method or action.
<form name="form1"> <form name="blah" action="submit.php" method="post"> (..) </form></form>
JavaScript would then do the following:
Or at least it works in terms of:document.form1.blah.field<div id="blah1"> <div id="nested">Content</div></div>
JavaScript would then do the following:
document.getElementByID("blah1").getElementByID("nested").object -
Thanks, I'll keep that in mind.
-
That won't work if you have javaScript disabled with such a thing as NoScript for Firefox (Which would also make sure that AJAX wouldn't run.)
-
You can also make actual TDs links themselves.
<TD onClick="location.href='blah.html'" onMouseOver="this.style.cursor='pointer'">
Useful for making cells linked in message board software skins.
-
I was wondering if it was at least OK practice to use custom-made tags in HTML. For example, the below code:
<TAGGER class="blah">Content</TAGGER>
I've done this before, and HTML said it was all fine and dandy (without any XML.)
-
And not to mention that the site is too dark and too bright at the same time. She should just quit.
-
Are you using FF to view that conditional statement? Or any other browser besides IE? If so, you need to view it in IE. If not, please post what your script is (In a Code BBCode tag please.)
-
Why would you want to capture the DB anyway? I don't use XHTML, so could you tell me what capturing does?
-
-
You also don't have to use JavaScript to swap to hand, I-Bar, Move, Help, etc. You can do that with a CSS style (like below).
#image { cursor:pointer; /* Hand */ cursor:url(); /* Custom */}
But that won't do your swap image thing. And Javascript for swapping an image would be:
<img src="blah.gif" id="swap" onMouseOver="swapImage('blah2.gif');" />
Where swapImage(); would be:
function swapImage(newSRC) { document.getElementByID("swap").src = newSRC;}
Why SHOULD I use XHTML?
in HTML/XHTML
Posted
Most browsers render the tag as a blank HTML element, for example:
Says to most browsers (IE6, FF and NN all output this way):
Without the comment of course. However, the HTML tag will STILL show in the source.