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.
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...
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.
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...
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...
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...
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...
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...
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 =...
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...
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.
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 =...
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...
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 =...
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.
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...
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')...
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.
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.