Jump to content

Wildcards


RaiNote
 Share

Recommended Posts

Link to comment
Share on other sites

Oh sorry forgot to write i found another way~

Func _YML_Open($tfile)
    Local $tData = DllStructCreate($tagWIN32_FIND_DATA)
    Local $sFile
    Local $hSearch = _WinAPI_FindFirstFile($tfile & '.yml', $tData)
    If FileExists($hSearch) Then
        $YML_Open = FileOpen($hSearch)
    ElseIf FileExists($tfile) Then
        $YML_Open = FileOpen($tfile)
    Else
        SetError(1)
    EndIf
EndFunc   ;==>_YML_Open

first Function~ of YML finished XD

but still thank you very much i'll Need them later for !!str !!float etc~

Edited by RaiNote
  • C++/AutoIt/OpenGL Easy Coder
  • I will be Kind to you and try to help you
  • till what you want isn't against the Forum
  • Rules~

 

Link to comment
Share on other sites

why do you use _WinAPI_FindFirstFile for that. Instead suggest to the programmer to pass a just a file path.  so then check if file exist.

 

Saludos

Link to comment
Share on other sites

Because because i searched for Wildcard and then changed it~ and no i don't want to Change it back ^-^ and for me I just love WinAPI because it has so many Functions~

A non Topic question ~ has YAML a Object OLE/COM?

Edited by RaiNote
  • C++/AutoIt/OpenGL Easy Coder
  • I will be Kind to you and try to help you
  • till what you want isn't against the Forum
  • Rules~

 

Link to comment
Share on other sites

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

×
×
  • Create New...