Search found 1957 matches: len

Searched query: len

by Silvio.Falconi
Fri Feb 14, 2025 11:53 am
Forum: FiveWin for Harbour/xHarbour
Topic: set check menu opoup from btnbmp
Replies: 0
Views: 110

set check menu opoup from btnbmp

... One" ACTION test(oPop,oBtn);
CHECKED

MENUITEM "Two"
ENDMENU

return oPop


Function test(oPop,oBtn)
local n
Msginfo("change")

for n=1 to len(oPop:aItems)
oPop:aItems[n]:SetCheck(.f.)
next n

oBtn:refresh()

return nil







and I wish checked a item of this menu How I must make ?

it ...
by Silvio.Falconi
Wed Feb 12, 2025 11:16 pm
Forum: FiveWin for Harbour/xHarbour
Topic: activate an online button
Replies: 2
Views: 176

activate an online button

... Function Btnbar(nBar,oBar,oDlg) // ,aBtnBar

local aBtnBar
local x

if Valtype( oBar ) = "O"
For x := Len( oBar:aControls ) to 1 step - 1
oBar:Del( x )
Next x
endif

Do case
case nbar = 0
DEFINE BUTTONBAR oBar OF oDlg SIZE 80,70 TOP NOBORDER 2015 ...
by Eroni
Wed Feb 12, 2025 1:03 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FTP Best Options ?
Replies: 8
Views: 1976

Re: FTP Best Options ?

... if ! Empty( oFTP:hFTP )

FtpSetCurrentDirectory(oFTP:hFTP, "/usr/cheshire/boh/")

aFiles = oFTP:Directory("rms.dat" )

IF len(aFiles) > 0
AEval( aFiles, { | aFile | FtpGetFile ( oFTP:hFTP, aFile[ 1 ], "c:\remanco\" + aFile[ 1 ] ,.t.,0,0,0 ) } )
ENDIF

else
// MsgAlert ...
by Silvio.Falconi
Wed Feb 12, 2025 9:12 am
Forum: FiveWin for Harbour/xHarbour
Topic: error in time format Resolved
Replies: 1
Views: 121

error in time format Resolved

... di entrata

// Debug: Mostra l'orario di entrata appena letto
* ? "Orario di Entrata letto: ", tEntrata

// Verifica il formato di tEntrata
If Len(tEntrata) == 5
tEntrata := tEntrata + ":00" // Aggiungi ":00" se non ci sono i secondi
EndIf

// Debug: Mostra l'orario di entrata dopo modifica ...
by leandro
Tue Feb 11, 2025 6:48 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Ajustar tamaño caja toast
Replies: 7
Views: 1337

Re: Ajustar tamaño caja toast

... AS PTR ) AS LONG PASCAL LIB "combase.dll"

FUNCTION RoActivateInstanceWrapper( cRuntimeClassName )
LOCAL nResult, pHString, pInstance
LOCAL nLength := Len( cRuntimeClassName )
LOCAL IID_IInspectable := "{AF86E2E0-B12D-4C6A-9C5A-D7AA65101E90}" // IID de IInspectable

// Inicializar el ...
by Antonio Linares
Tue Feb 11, 2025 7:30 am
Forum: FiveWin para Harbour/xHarbour
Topic: Ajustar tamaño caja toast
Replies: 7
Views: 1337

Re: Ajustar tamaño caja toast

... AS PTR ) AS LONG PASCAL LIB "combase.dll"

FUNCTION RoActivateInstanceWrapper( cRuntimeClassName )
LOCAL nResult, pHString, pInstance
LOCAL nLength := Len( cRuntimeClassName )
LOCAL IID_IInspectable := "{AF86E2E0-B12D-4C6A-9C5A-D7AA65101E90}" // IID de IInspectable

// Inicializar el ...
by JoséQuintas
Mon Feb 10, 2025 1:46 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Text scroll and time graph
Replies: 2
Views: 314

Text scroll and time graph

... NIL, "", xContNow )
IF Empty( aStatic[ GRAF_TXT_BAR ] )
aStatic[ GRAF_TXT_BAR ] := Replicate( ".", MaxCol() )
FOR nCont = 1 to 10
nPos := Int( Len( aStatic[ GRAF_TXT_BAR ] ) / 10 * nCont )
cTxt := lTrim( Str( nCont, 3 ) ) + "0%" + Chr(30)
aStatic[ GRAF_TXT_BAR ] := Stuff( aStatic[ GRAF_TXT ...
by Marc Venken
Sat Feb 08, 2025 2:48 pm
Forum: FiveWin for Harbour/xHarbour
Topic: ChatGpt+Xbrowse+Set Filter
Replies: 3
Views: 411

ChatGpt+Xbrowse+Set Filter

... oBrw )

LOCAL cFilter := ""
LOCAL n, oCol, uVal, cType, cVal1, cVal2, nGevonden
LOCAL nZoekKnop, cExprt
LOCAL cAlias:= alias()
FOR n := 1 TO Len( oBrw:aCols )
oCol := oBrw:aCols[ n ]
IF ! Empty( uVal := oCol:uBarGetVal )
IF !Empty( cFilter )
cFilter += " .AND. "
ENDIF
cType := ValType ...
by Antonio Linares
Sat Feb 08, 2025 9:41 am
Forum: FiveWin para Harbour/xHarbour
Topic: Ajustar tamaño caja toast
Replies: 7
Views: 1337

Re: Ajustar tamaño caja toast

... function WinRTString( cText )

local pString

WindowsCreateString( AnsiToWide( cText ), Len( cText ), @pString )

return pString

//---------------------------------------------------------------------------//

static function SetNodeText ...
by Antonio Linares
Fri Feb 07, 2025 9:59 pm
Forum: latest AI news
Topic: reproduced DeepSeek R1-Zero for < $30 !!!
Replies: 9
Views: 12241

Re: reproduced DeepSeek R1-Zero for < $30 !!!

... unsloth import FastLanguageModel, PatchFastRL
PatchFastRL("GRPO", FastLanguageModel)

from unsloth import is_bfloat16_supported
import torch
max_seq_length = 1024 # Can increase for longer reasoning traces
lora_rank = 64 # Larger rank = smarter, but slower

model, tokenizer = FastLanguageModel.from ...
by Antonio Linares
Wed Feb 05, 2025 3:51 am
Forum: latest AI news
Topic: reproduced DeepSeek R1-Zero for < $30 !!!
Replies: 9
Views: 12241

Re: reproduced DeepSeek R1-Zero for < $30 !!!

... answer>([\s\S]*?)<\/answer>$"

match = re.search(regex, completion, re.DOTALL)
# if the format is not correct, reward is 0
if match is None or len(match.groups()) != 2:
rewards.append(0.0)
else:
rewards.append(1.0)
except Exception:
rewards.append(0.0)
return rewards

def equation_reward ...
by JESUS MARIN
Sun Feb 02, 2025 9:34 am
Forum: FiveWin para Harbour/xHarbour
Topic: Focus en window MDICHILD
Replies: 9
Views: 18002

Re: Focus en window MDICHILD

... LOCAL I:=1
local oMenu
LOCAL nRowMenu:=oButton:nTop+oButton:oWnd:nTop+oButton:nHeight
LOCAL nColMenu:=oButton:nLeft

MENU oMenu POPUP
FOR I=1 TO LEN(aVentanasMdi)
IF aVentanasMdi[i]==Self:cCaption
MENUITEM aVentanasMdi[i] OF oMenu CHECKED
ELSE
MENUITEM aVentanasMdi[i] OF oMenu
ENDIF
NEXT I ...
by Antonio Linares
Fri Jan 31, 2025 10:06 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Focus en window MDICHILD
Replies: 9
Views: 18002

Re: Focus en window MDICHILD

... LOCAL I:=1
local oMenu
LOCAL nRowMenu:=oButton:nTop+oButton:oWnd:nTop+oButton:nHeight
LOCAL nColMenu:=oButton:nLeft

MENU oMenu POPUP
FOR I=1 TO LEN(aVentanasMdi)
IF aVentanasMdi[i]==Self:cCaption
MENUITEM aVentanasMdi[i] OF oMenu CHECKED
ELSE
MENUITEM aVentanasMdi[i] OF oMenu
ENDIF
NEXT I ...
by MGA
Fri Jan 31, 2025 1:41 pm
Forum: FiveWin para Harbour/xHarbour
Topic: operator ^^ como puedo solucionar?
Replies: 6
Views: 11767

Re: operator ^^ como puedo solucionar?

... Local cHex, cChar

Default nStartEvaluate := 1

cHex := ""
cChar := ""

For Each cChar IN cResposta
if HB_EnumIndex( cChar ) < Len( cResposta )
if HB_EnumIndex( cChar ) == nStartEvaluate
cHex := cChar
endif
cHex := cHex ^^ cResposta[ HB_EnumIndex( cChar ) + 1 ]
endif
next ...
by JESUS MARIN
Fri Jan 31, 2025 9:51 am
Forum: FiveWin para Harbour/xHarbour
Topic: Focus en window MDICHILD
Replies: 9
Views: 18002

Re: Focus en window MDICHILD

... LOCAL I:=1
local oMenu
LOCAL nRowMenu:=oButton:nTop+oButton:oWnd:nTop+oButton:nHeight
LOCAL nColMenu:=oButton:nLeft

MENU oMenu POPUP
FOR I=1 TO LEN(aVentanasMdi)
IF aVentanasMdi[i]==Self:cCaption
MENUITEM aVentanasMdi[i] OF oMenu CHECKED
ELSE
MENUITEM aVentanasMdi[i] OF oMenu
ENDIF
NEXT I ...