Sign in to follow this  
Followers 0
GodForsakenSoul

how hath i sinned?!

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

$kcsSS is an array so your test is wrong!

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

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

oh....

OH!

amazing how much change can about 5 letters make... no?

Share this post


Link to post
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
Sign in to follow this  
Followers 0