mechail

Archive for April, 2008

Updates!

In Uncategorized on April 21, 2008 at 5:13 pm

Within a week of posting the workarounds for a couple of bugs in the structures as stated here and here, they were fixed (thats efficiency for ya)! New version with bug fixes will be releasing soon, along with added features and other bug fixes in the FIDE tools. AND! FICE System Documentation v1.2 will be up soon with loads of example codings and explanations as compared to the v1.1 release. So keep your eye open for it.

Users still using v1.2 till date can still take note of the workarounds until the next release.

(Release dates TBA. )

FOR…NEXT loop

In Uncategorized on April 16, 2008 at 1:49 pm

The FOR.. NEXT loop has got to be my favourite control structure of all time. Just something to take note of though;

The control variable MUST be a local or publicly declared variable. The use of a variable that is called by reference is not allowed.

What i mean by control variable is this:

Example:

Dim i As Integer i is the control variable

For i = 0 To 100

‘Statements Here

Next

Tip of the Day:
As everybody (well, almost everybody.. okay fine, programmers) knows, the use of the select case statement is similar to that of using an If..Elseif…Else..End If statement, however, if you’re into boosting the performance rate of the FI and optimizing your code for the best results, a good practice would be to use the If..Elseif..Else..End If statement instead of the Select Case statement for faster results. But in certain cases it really is easier to use the Select Case statement. But that depends on the individual programmer’s preference.

Select Case.. End Select | If..ElseIf..Else..End If

In Uncategorized on April 14, 2008 at 5:51 pm

FIDE v1.2 has officially launched!

Meanwhile…

Do take note that while doing this is fine…

Select Case word

case 178 ‘Who

keyWords(kwInt) = RDAT(sInt)

kwInt = kwInt + 1

typeState = 1

case 124 ‘What

keyWords(kwInt) = RDAT(sInt)

kwInt = kwInt + 1

typeState = 1

case 128 ‘When

keyWords(kwInt) = RDAT(sInt)

kwInt = kwInt + 1

typeState = 1

case 218 ‘Where

keyWords(kwInt) = RDAT(sInt)

kwInt = kwInt + 1

typeState = 1

case 255 ‘Why

keyWords(kwInt) = RDAT(sInt)

kwInt = kwInt + 1

typeState = 1

case else

End Select

Having a commented line on its own in between the cases will trigger a syntax error.

Example:

Select Case word

case 178 ‘Who

keyWords(kwInt) = RDAT(sInt)

kwInt = kwInt + 1

typeState = 1

case 124 ‘What

keyWords(kwInt) = RDAT(sInt)

kwInt = kwInt + 1

typeState = 1

‘something like that <==============

case 128 ‘When

keyWords(kwInt) = RDAT(sInt)

kwInt = kwInt + 1

typeState = 1

case else

End Select

And you should always, ALWAYS have a case else right at the end before you End Select.

Speaking of ‘else’;

Something else (no pun intended) that you should take note of would be the IF.. ELSEIF..ELSE..END IF statement, is that it HAS to be in this particular format, unless you’re just using IF..END IF.

So yeah. Till next time!