Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Comparison
Message
From
09/12/2002 10:59:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/12/2002 10:44:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00730914
Message ID:
00730924
Views:
14
>Does anyone know of a tool or utility to compare two forms and display the differences. I know that VSS has this capability but we do not have VSS installed/implemented where I am.
>
>
>Thanks,
>Wayne Frenck

If VSS capability is enough for you, you could use scctext.prg to get textual representations of forms and compare them (VSS also uses SCCtext.prg) as strings.
Alternatively you could compare scx table records as objects. ie:
("Roughly")
lFormsMatch = .t.

use myform1.scx in 0 alias f1
use myform2.scx in 0 alias f2

select f1
scan
 scatter name oF1 memo
 select f2
 locate for objname==oF1.objname and parent==oF1.parent
 if eof()
  lFormsMatch = .f.
  exit
 endif
 scatter name oF2 memo
 if !compobj(oF1,oF2)
  lFormsMatch = .f.
  exit
 endif
endscan
use in "f1"
use in "f2"
? lFormsMatch
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform