Liberty BASIC Community Forum
« Search Results »

Welcome Guest. Please Login or Register.
Dec 3rd, 2016, 9:52pm


Rules|Home|Help|Search|Recent Posts|Notification

--Liberty BASIC Resources--
Liberty BASIC Community WikiSpace
Frequently Asked Questions
Bay Six Software Forum
Liberty BASIC Home Page
Carl Gundel's Blog
Official Liberty BASIC Support
Liberty BASIC Programmer's Encyclopedia
Liberty BASIC on Rosetta Code

Search Results

Total results: 10


 1   API/DLL / Re: API's for Beginners  on: Today at 6:54pm
Started by Janet | Post by petermat
Thanks people! I suspect it would have taken my waaaaay over five minutes to work out that 'folder only' code. But between that and Filedialog I have what I wanted.
 
  Reply Quote Notify of replies

 2   API/DLL / Re: API's for Beginners  on: Today at 4:34pm
Started by Janet | Post by MKnarr
It's not easy but if all you need is the folder:

Code:
BIF.RETURNONLYFSDIRS = 1
    MAX.PATH = 260
    STRUCT BrowseInfo,_
    hWndOwner As uLong,_
    pIDLRoot As Long,_
    pszDisplayName As Long,_
    lpszTitle$ As ptr,_
    ulFlags As Long,_
    lpfnCallback As Long,_
    lParam As Long,_
    iImage As Long
    'Set the owner window, optional
    BrowseInfo.hWndOwner.struct = 0
    BrowseInfo.lpszTitle$.struct = text$
    'Return only if the user selected a directory
    BrowseInfo.ulFlags.struct = BIF.RETURNONLYFSDIRS
    'Show the 'Browse for folder dialog
    calldll #shell32, "SHBrowseForFolder",_
    BrowseInfo as struct,_
    lpIDList as long
    If lpIDList>0 Then
        sPath$ = space$(MAX.PATH) + chr$(0)
        'Get the path from the IDList
        calldll #shell32, "SHGetPathFromIDList",lpIDList as long,sPath$ as ptr,r as long
        open "ole32" for dll as #ole
        'Free the block of memory
        calldll #ole, "CoTaskMemFree",_
        lpIDList as long,_
        r as long
        close #ole
        iNull = InStr(sPath$, chr$(0))
        If iNull Then sPath$ = Left$(sPath$, iNull - 1)
    End If
    print sPath$

 

 
  Reply Quote Notify of replies

 3   API/DLL / Re: API's for Beginners  on: Today at 3:02pm
Started by Janet | Post by petermat
Ah, but! FileDialog, not surprisingly, allows the name of a file to be determined. However for one use I just need a folder path. Agreed I can say something like "Please select a random file in the folder you want the results files to appear. The file you select will not be overwritten!" - but this is a little clumsy. Am I still missing a 'FolderDialog' equivalent or does this push me to API, Or?
 
  Reply Quote Notify of replies

 4   API/DLL / Re: API's for Beginners  on: Today at 09:10am
Started by Janet | Post by petermat
Thank you - sorry not to have found it - looking in the wrong place.
 
  Reply Quote Notify of replies

 5   API/DLL / Re: Comalexcel  on: Today at 02:47am
Started by hans | Post by Rod
It is a wrapper .dll that allows Liberty BASIC to interact with an Excel spreadsheet.

It is old and unsupported, you also need to understand Excel to get the best out of it.
 
  Reply Quote Notify of replies

 6   API/DLL / Re: API's for Beginners  on: Today at 01:40am
Started by Janet | Post by Rod
There is native command for that, no need for api

Filedialog
 
  Reply Quote Notify of replies

 7   API/DLL / Re: API's for Beginners  on: Yesterday at 7:20pm
Started by Janet | Post by petermat
I have a basic understanding of using API's - but cannot find my way around the maze of what is available. I would like to open a windows explorer window to allow the user to select an existing file known to them, (but not to the programmer) so that I can subsequently open that file. Can someone please point me to the correct API / DLL info?
 
  Reply Quote Notify of replies

 8   General Board / Re: Our Own Local Celebrity - Gettin' Some Headlin  on: Yesterday at 2:20pm
Started by Brandon Parker | Post by ElEdwards
Thanks, Brandon smiley
 
  Reply Quote Notify of replies

 9   API/DLL / Re: Comalexcel  on: Yesterday at 2:14pm
Started by hans | Post by alincon2001
What is Comalexcel? How does it work with LB?

r.m.
 
  Reply Quote Notify of replies

 10   API/DLL / Re: Comalexcel  on: Yesterday at 09:49am
Started by hans | Post by JohnnyD
Scrap that request, I managed to find it:

https://groups.yahoo.com/neo/groups/lbfiles/files/DLLs/

John.
 
  Reply Quote Notify of replies


Rules|Home|Help|Search|Recent Posts|Notification



Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls