In VFP: If "Mylocal = 10" should be an expression, it cannot be a command - assignment.
Zdeněk
Search found 16 matches
- Fri Dec 11, 2020 9:14 am
- Forum: Visual FoxPro
- Topic: Input needed on FoxPro local support
- Replies: 15
- Views: 3716
- Mon Aug 17, 2020 12:05 pm
- Forum: Visual FoxPro
- Topic: speed of LOCATE command in X# vs VFP
- Replies: 34
- Views: 7076
speed of LOCATE command in X# vs VFP
I would like to note that the LOCATE command in VFP uses Rushmore optimization when possible
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 ...
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 ...
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 ...
- 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
Zdenek
- 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
....
- 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
Zdeněk
- 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
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
- 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
After ? follows expression, which is evaluated in sqlExec call.
This can be field in used cursor or expression like ?(date()-10)
Zdeněk