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 Mike Lewis 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. Irwin1985

    MagicMenu for VFP special projects

    Thanks Mike, I forgot to say (send me an email with your github user name or email) [bigsmile] Regards. A team is only pieces that you exchange until you finish the work, it is efficient, it works.
  2. Irwin1985

    MagicMenu for VFP special projects

    Hello everyone, For those who are interested in creating web solutions (API REST, html based) using Visual FoxPro 9.0 as backend code, I have created a couple of libraries that makes these kind of solutions possible by using the MagicMenu Tool. With this MagicMenu you can also create Console...
  3. Irwin1985

    Avoid sorted properties by using AMEMBERS()

    My head hurts just thinking about it :) I honestly don't think it's worth the effort so I'll just leave it like that for now. thank you all! A team is only pieces that you exchange until you finish the work, it is efficient, it works.
  4. Irwin1985

    Avoid sorted properties by using AMEMBERS()

    Thanks for your suggestion Mike, I was thinking something similar but I really don't want to compromise the speed of the algorithm. Honestly the final JSONString order doesn't matter so I don't believe this extra code worth it. regards! A team is only pieces that you exchange until you finish...
  5. Irwin1985

    Avoid sorted properties by using AMEMBERS()

    Thanks Mike, You're right, AMEMBERS() sorted array will not affect the way I access the object properties. I really need it because I have a class called JSONFox and some users are claiming they need the JSON format the same way they created it. In order to encode from VFP object to JSONString...
  6. Irwin1985

    Avoid sorted properties by using AMEMBERS()

    Hi everyone, if you try this example: CLEAR obj = CREATEOBJECT("Empty") ADDPROPERTY(obj, "c", "c content") ADDPROPERTY(obj, "b", "b content") ADDPROPERTY(obj, "a", "a content") AMEMBERS(aProp, obj) DISPLAY MEMORY LIKE aProp you'll notice that AMEMBERS() function retrieves an ordered array...
  7. Irwin1985

    JSONFox Library

    Hi everyone! I've rewritten the JSONFox library using the 'Recursive Descent Parsing' approach and the result was pretty cool. Now you can use it as a compiled application by issuing the following: Do LocFile("JSONFox", "app") This new version is full compatible with the old one 1.9 specially...
  8. Irwin1985

    How to explicitly include a free DBF table by code using the BUILD PROJECT command

    If there isn't any way to achieve this by hand so I'll have to do this: If File(lcPJXFileName) Use (lcPJXFileName) Alias MyProj In 0 Update MyProj Set Exclude = .F. Where "bar.dbf" == JustFname(name) Endif A team is only pieces that you exchange until you finish the work, it is efficient...
  9. Irwin1985

    How to explicitly include a free DBF table by code using the BUILD PROJECT command

    Is there any way to include a DBF file in the project by code? When you add a free table in your project that file will be excluded by default so you must to include it explicitly if you want to use it within your EXE. Here's an example of BUILD PROJECT command: lcPJXFileName =...
  10. Irwin1985

    VFP API Returning an Object

    Mike, I need a FLL because of performance. I have various classes that reads a bunch of MPR files line by line (parsing) to generate an object array, then that array is readed from an activex control to finally render a menu in the screen. In VFP native code it lasts about 6 seconds (depending...
  11. Irwin1985

    VFP API Returning an Object

    Hi Olaf, Using _Execute() and NTI functions sounds good to me. I'll stick with it ans see if I am able to solve my problem. Thanks! A team is only pieces that you exchange until you finish the work, it is efficient, it works.
  12. Irwin1985

    VFP API Returning an Object

    Hi there, Does anybody know how to return an object from a FLL? If so, please code. I tried this but doesn't work: #include <stdio.h> #include "pro_ext.h" typedef struct { char *name; int age; } person; void ReturningObject(ParamBlk *parm) { person p1; p1.age = 34; Value *val; val->ev_type =...
  13. Irwin1985

    FoxRegEx

    Hi everyone! I'm glad to present you this wrapper library written in Vfp for he RegEx object built in VBScript. Besides providing all the RegEx object functionality you may get all the matches in a cursor. You may also call the built in validators patterns for email, urls, etc. Give it a shoot...
  14. Irwin1985

    How to Wait until the control Timer finish its task

    I have a control Timer that executes its Timer Events 100 times. In other method I do the following: nTimes = 100 Timer1.Enabled = .T. && this enables the control Timer and its task begins. && But in this line I need to wait until the timer finish its task. I tried: DO WHILE TaskFinishedFlag =...
  15. Irwin1985

    How to solve this issue

    Thanks Mike, I did solve the problem by creating a custom class and put all menu procedures in it. A team is only pieces that you exchange until you finish the work, it is efficient, it works.
  16. Irwin1985

    How to solve this issue

    I have a menu embdbed to _SCREEN: On Selection Bar 1 Of MyPopMenu Do prcLoadConfig Procedure prcLoadConfig MessageBox("Hello Procedure!!!") EndProc Works quite good but if you switch VFP main window to another and execute the option again then you get this error: What am I doing...
  17. Irwin1985

    FoxFaker Library

    Hi Tamar, You're in the right way, FoxFaker generate random test data that can be used on unit testing by filling in your business logic objects: Consider these examples: Procedure test_should_save_a_record_in_table_returns_true oPerson.FirstName = Faker.fakeName('female')...
  18. Irwin1985

    FoxFaker Library

    Hi Mike, Correct. It's a test data generator and really can save a lot of tedious work. regards A team is only pieces that you exchange until you finish the work, it is efficient, it works.
  19. Irwin1985

    FoxFaker Library

    Hi everybody I've released a class library that fakes data for you. This is really useful when you're implementing n-tier architecture, 3-layer, or just isolate the business logic and data access layer. NOTE: you may combine FoxFaker with FoxUnit and FoxMock for a better performance...
  20. Irwin1985

    Singleton Class in Visual FoxPro 9.0

    I need to create my own Singleton Class using Visual FoxPro 9.0 I tried this: oRef1 = CreateObject("Singleton") oRef2 = CreateObject("Singleton") oRef1.cTest = "Some Text" ?oRef1.cTest && Some Text ?oRef2.cTest && Prints nothing :( Release oRef1, oRef2 Clear All Return *-- Singleton class...

Part and Inventory Search

Back
Top