Jump to content

how hath i sinned?!


Recommended Posts

Func FKanCheckScore()
    $kcsIR1=IniRead($gIniPath,$Ini2,"SCORE",0)
    $kcsSS=StringSplit($kcsIR1,"")
    ReDim $kcsSS[6]
    For $kcaL=1 To 5
        If $kcsSS="" Then
            $kcsSS=0
        EndIf
    Next
    Return $kcsSS
EndFunc

let's make this short and sweet.

My problem here is that this lovely function doesn't 0-fy the blanks. There ARE blanks.

suggestions?

Link to comment
Share on other sites

  • Developers

$kcsSS is an array so your test is wrong!

Also rethink what you want to do after the If is true.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...