Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code in Form Load
Message
From
22/07/2003 19:50:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Code in Form Load
Miscellaneous
Thread ID:
00812595
Message ID:
00812595
Views:
50
Hi all,

In my Form Load Event i have this code and it work's ok,
IF Version(2)>0
    && Cria Objecto oAPP para Passar Parametros COM
    set classlib to JBApplic ADDITIVE
    WITH oApp
        .cServerName='192.168.0.1'
	.cDatabase='TESTE'
	.cUserName = 'JoaoBatista'
	.cUserPass = 'internet'
    ENDWITH
ENDIF
DODEFAULT()
Now i need to move it to a prg, like this,
If Version(2) > 0
  && Cria Objecto oAPP para Passar Parametros COM
  set classlib to JBApplic ADDITIVE
  oApp      = createobject('JBApplication')
  WITH oApp
        .cServerName='192.168.0.1'
	.cDatabase='IPLAZ'
	.cUserName = 'JoaoBatista'
	.cUserPass = 'internet'
  ENDWITH
ENDIF
and always i get the error 1429, (this is login to SQL-Server), i can't access the tables.


Joao Batista
Next
Reply
Map
View

Click here to load this message in the networking platform