Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mplaza

    settings in config.fpw

    Indeed .. to create resource files wherever you choose is one of the benefits of this utility; the above indications ensure you are using a local drive for it . Give it a try!
  2. mplaza

    settings in config.fpw

    1 create a local folder for your project 2 start vfp as normal and do nfCustomEnvHelper.prg .. indicate the new folder is your "project folder" 3 start vfp using the newly created shortcut ; you'll see an option menu "Custom Env" 4 select edit 'afterstartup' and include a line to change to your...
  3. mplaza

    settings in config.fpw

    Hi everyone.. happy new year! You can try this utility script to create shortcuts with isolated config for your projects: https://github.com/nfoxdev/nfCustomEnvHelper/tree/main nfCustomEnvHelper Start vfp directly on your project folder from a shortcut. You'll get a separate command history...
  4. mplaza

    Sending emails with VFP with CDO

    Here you have a guide on how to send DKIM signed emails with mailKit and .net core: Sending emails with .Net Core using MailKit with DKIM signature The c# source to sign the message is included at the end. It's 3 steps - create a DkimSigner object, create the headers, and sign the message...
  5. mplaza

    Sending emails with VFP with CDO

    Try using sfMail - a mail client based on MailKit from Doug Hening that works well with gmail and office 365. Marco Plaza https://www.github.com/nfoxdev
  6. mplaza

    Getting a USB drive letter programmatically

    Hello Antonio.. ah haha you ruined it! [bigsmile] ( thanks for the compliment ) Never mind Chriss.. Marco Plaza https://www.github.com/nfoxdev
  7. mplaza

    Getting a USB drive letter programmatically

    Whoops.. Certainly I did not notice I uploaded a _wmi.prg that has some new dependencies. The repo is now updated with the standalone version, wich I also post below to save the trip: PS: the codeproject article you shared was very useful, it saved a lot of time...
  8. mplaza

    Getting a USB drive letter programmatically

    Not trivial indeed, but here is the vfp code using _wmi.prg: *---------------------------------------------------------------- * Marco Plaza, 2024 * sample using nfox _wmi.prg ( https://github.com/nfoxdev/_wmi ) * get drive type, letter...
  9. mplaza

    Getting a USB drive letter programmatically

    You are right.. no drive letter.. but I just shared a tool to ease the tasks you mentioned above! See how easy is to examine any wmi class. Check Win32_logicalDisk and see if driveType / deviceId helps: Marco Plaza https://www.github.com/nfoxdev
  10. mplaza

    Getting a USB drive letter programmatically

    WMI gives all the info.. check above and see "mediaType" - you'll get "Fixed hard disk" "Removable hard drive" "External hard disk" or "Removable media" Marco Plaza https://www.github.com/nfoxdev
  11. mplaza

    Getting a USB drive letter programmatically

    Hello Chris, you can get all the disk information ( and any other info wmi has to offer ) in one line call using _WMI.PRG , a short utility I shared. You can get it at https://raw.githubusercontent.com/nfoxdev/_wmi/main/_wmi.prg just save it and try oDisk = _wmi('Win32_diskDrive')...
  12. mplaza

    Help with IE, not selecting the page properly

    Try this routine to get all the tables from your site: *---------------------------------------- * get html tables from url *---------------------------------------- local owbf,tc,ntable,crows,ccells,coln,ccn,xmltable,tname,table,tablerow,cell curl =...
  13. mplaza

    Getdir() fails to return empty USB-disk

    Seems the link is not valid if it's clicked from here. anyway, better see https://www.vfphelp.com/vfp9/_5wn12pqu7.htm Note: The root help in MS site is: VFP HELP but vfp9help.com has the updated vfpx version. Marco Plaza @nfoxProject https://www.github.com/nfoxdev
  14. mplaza

    Getdir() fails to return empty USB-disk

    Just set the "new" dialog style using flag=64: getdir('','','',64) https://learn.microsoft.com/en-us/previous-versions/visualstudio/foxpro/dsx659xk(v=vs.71) Fixed!: Getdir Hlp Marco Plaza @nfoxProject https://www.github.com/nfoxdev
  15. mplaza

    REGARDING JSON READ PROBLEM

    You are looking for items array, wich is a member of the object in the first row of the (unnamed) root array. Since nfJson always returns an object: myObject = nfjsonRead('["a","b","c"]') ? myObject.array(1) && = 'a' use the debugger to inspect your object and drag and drop any property...
  16. mplaza

    vfp to json

    Hello Dominic, better use nfJson ( just download from https://github.com/VFPX/nfJson/archive/refs/heads/master.zip ) and set path to nfJson folder to start using it. Check this sample using northwind: *-------------------------------------------- * using nfJson to create json * from...
  17. mplaza

    VFPX pj2 conversion to pjx

    The projectExplorer ( https://github.com/DougHennig/ProjectExplorer ) has integrated support for github + foxbin among many improvements over the foxpro project manager. ( A good presentation is available here https://www.youtube.com/watch?v=G43sUwYlDJ0 ) There's no prefefined way to use a...
  18. mplaza

    Open a jpg, mod jpg, close and save jpg

    Indeed GDIX is a fantastic project.. About the vcx.. the page says under distribution files: "GDIPlusX.vcx - This visual class library contains the imgCanvas class and will need to be compiled into your application for distribution, if you utilize this class." - I see it's not needed here so...
  19. mplaza

    Open a jpg, mod jpg, close and save jpg

    Hello Chris, I was referring to the fact that you need to recreate the pjx using foxbin, then build system.app and redistribute system.app + include a support vcx in your project , vs just download a prg based class.. But like you show, of course GDI+X has much more to offer! Marco...
  20. mplaza

    Open a jpg, mod jpg, close and save jpg

    The easiest way is using Alexander Golovlev's gpiImage class ( a wrapper for GDI+); It's available upgraded and documented by Cesar Chalom at https://vfpimaging.blogspot.com/p/gpimage2.html ** using gpiImage Set Procedure To gpimage additive gpinit = Createobject('gpInit') gpimage =...

Part and Inventory Search

Back
Top