Champak Posted May 27, 2023 Posted May 27, 2023 I'm using _GUICtrlListView_GetItemText to retrieve text that could sometimes contain a decimal point, so I'm using isfloat to verify the number for the next part of the function, but it is rejecting it. $sValue = _GUICtrlListView_GetItemText ( $cLV_1, $sListV_Index, $sU_Col) ;If the item is not a digit then set a 0 entry and continue If $sU_Col <> 0 And Not StringIsFloat($sValue) Then ConsoleWrite("! Detected string is not a digit! " & $sValue & " - column " & $sU_Col) _GUICtrlListView_SetItemText ( $cLV_1, $sListV_Index, 0, $sU_Col ) EndIf Any idea?
Danyfirex Posted May 29, 2023 Posted May 29, 2023 Hello, Add a code that where we can reproduce the issue. You topic makes no sense. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
paw Posted May 30, 2023 Posted May 30, 2023 (edited) If $sU_Col <> 0 Change to "0", also look at Comparing different datatypes Edited May 30, 2023 by paw
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now