Search found 16 matches

by Zdeněk Krejčí
Fri Dec 11, 2020 9:14 am
Forum: Visual FoxPro
Topic: Input needed on FoxPro local support
Replies: 15
Views: 3719

Input needed on FoxPro local support

In VFP: If "Mylocal = 10" should be an expression, it cannot be a command - assignment.

Zdeněk
by Zdeněk Krejčí
Mon Aug 17, 2020 12:05 pm
Forum: Visual FoxPro
Topic: speed of LOCATE command in X# vs VFP
Replies: 34
Views: 7088

speed of LOCATE command in X# vs VFP

I would like to note that the LOCATE command in VFP uses Rushmore optimization when possible
by Zdeněk Krejčí
Fri Jun 12, 2020 11:33 am
Forum: Product
Topic: index
Replies: 10
Views: 2285

index

<r>sptsetupdatable.prg <CODE><s>[code]</s><i> </i>Lparameters lcAlias, lcSqlTable, lcKeyFields *-------------------------------------------- * Set SPT kurzor updatable, field names are the same as on the server *-------------------------------------------- * lcAlias - local cursor * lcSqlTable ...
by Zdeněk Krejčí
Fri Jun 12, 2020 11:07 am
Forum: Product
Topic: index
Replies: 10
Views: 2285

index

<r>MS SQL server <CODE><s>[code]</s> CREATE TABLE [dbo].[TEST]( [idTest] [int] IDENTITY(1,1) NOT NULL, [n1] [int] NULL, [c1] [varchar](50) NULL, CONSTRAINT [PK_TEST] PRIMARY KEY CLUSTERED ( [idTest] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON ...
by Zdeněk Krejčí
Fri Jun 12, 2020 6:29 am
Forum: Product
Topic: index
Replies: 10
Views: 2285

index

<t>Robert,<br/> vfp cursor against sql server can be updatable. You have to set some properties of the cursor via use some cursorsetprop() functions. <br/> CURSORSETPROP("Tables", ... )<br/> CURSORSETPROP("UpdatableFieldList" , ...)<br/> CURSORSETPROP("UpdateNameList" , ...)<br/> CURSORSETPROP ...
by Zdeněk Krejčí
Fri May 08, 2020 5:26 pm
Forum: Visual FoxPro
Topic: Let's write the EVL() function for X#...
Replies: 24
Views: 5759

Let's write the EVL() function for X#...

Expression2 can be strong typed.
Zdenek
by Zdeněk Krejčí
Fri May 08, 2020 2:18 pm
Forum: Visual FoxPro
Topic: Let's write the EVL() function for X#...
Replies: 24
Views: 5759

Let's write the EVL() function for X#...

Code: Select all

FUNCTION EVL(eExpression1 AS USUAL, eExpression2 AS <T>) AS USUAL
If IsEmpty(eExpression1)
  Return eExpression2
Endif
Return eExpression1
....
by Zdeněk Krejčí
Fri May 08, 2020 11:25 am
Forum: Visual FoxPro
Topic: Let's write the EVL() function for X#...
Replies: 24
Views: 5759

Let's write the EVL() function for X#...

Is it possible to use generics like c#?
Zdeněk
by Zdeněk Krejčí
Thu May 07, 2020 6:12 am
Forum: Visual FoxPro
Topic: Couple of items about VAL()
Replies: 16
Views: 3188

Couple of items about VAL()

In VFP Val() respects set("Point") too

SET POINT TO "."
? VAL("7.53") && 7.53
? VAL("7,53") && 7.00

SET POINT TO ","
? VAL("7.53") && 7,00
? VAL("7,53") && 7,53

Zdeněk
by Zdeněk Krejčí
Fri Apr 24, 2020 2:40 pm
Forum: Visual FoxPro
Topic: Foxpro SQL functions - sqlParameters for sqlExec()
Replies: 16
Views: 3812

Foxpro SQL functions - sqlParameters for sqlExec()

Small notice to "?" in Foxpro sqlExec.

After ? follows expression, which is evaluated in sqlExec call.

This can be field in used cursor or expression like ?(date()-10)

Zdeněk