topic
stringlengths
1
63
text
stringlengths
1
577k
strange execution of Index
Perhaps
strange execution of Index
First I never had this error because when I opened the application I went to check if the dbf files were in the specific folder (cDbfpath) and if I did not there I created them and also created the indexes by deleting them first. Obviously, I first opened the archives in exclusive mode. Now with the opening in the new share mode I can not create the indexes because it requires the exclusive way and consequently I can not make the packs. So now I have not understood well when I can make indexes and packs to the database. If a user opens the program from another location on the network, the application can not perform the above check because the files are already opened by another user in another location. It seems an absurdity and at the same time it seems to me absurd to be able to make a voice alert to all connected users "[i:fc2s2zkq]you have to close because I have to make the indexes to the archives [/i:fc2s2zkq]..!" and then run the indexes and the packs. [b:fc2s2zkq] 1)[/b:fc2s2zkq] Can you explain to me when I can make the indexes and the packs [b:fc2s2zkq]2[/b:fc2s2zkq]) when I deliver the application to the client I also have to deliver the indexes? [b:fc2s2zkq]3[/b:fc2s2zkq])how to check if the archives are open and create indexes?
strange execution of Index
Silvio, [quote:1wng5mjk]1) Can you explain to me when I can make the indexes and the packs[/quote:1wng5mjk] I have been trying to tell you this. You cannot build indexes unless you have the files open in exclusive use. And you should not be building indexes everytime the program is run--there is no need. If the program has just been installed, then it should check to see if the databases exist, and if not create them. Then it should open them in exclusive use mode, and build the indexes. Then close the files. Files should then be opened shared whenever they are opened. From then on, when the program is run and does the check for the databases, it will find them and thus just skip that step. Do you have a lot of deleted records? If so, why? Most times you can avoid doing packs by reusing deleted records. If you don't reuse them, then an Admin will have to have exclusive use of the files needing to be packed. [quote:1wng5mjk]2) when I deliver the application to the client I also have to deliver the indexes?[/quote:1wng5mjk] No, see explaination above. [quote:1wng5mjk]3)how to check if the archives are open and create indexes?[/quote:1wng5mjk] If you can't get exclusive use of the files, then they are open by someone else. And you need to get exclusive use of ALL the files BEFORE you delete the indexes and rebuild them. Also, you seem to think that the indexes need to be created each time the program is run. Not so. Generally, the only time they need to be created is when they don't exist or when they are corrupted.
strange move Folder - Dialog
[b:dawz4t3c]a strange thing happens to me[/b:dawz4t3c] I have a dialog with a folder depending on whether the user presses a tab the dialgog must change the height ( init 680), When the user press the tab 3 or tab 6 the dialog must be of 400 height the other the dialog must be 680 height I need it because it is possible that in some tabs I do not put some information while in others the information is more than the others it is possible that in some tabs I do not put some information while in others the information is more than the others [b:dawz4t3c]the problem is that when I press a tab the dialog moves up each time[/b:dawz4t3c] i.e. it does not remain in the initial coordinates i.e. the dialog must always be in one point only the height must change according to the folder tab that is pressed [b:dawz4t3c]the sample code [/b:dawz4t3c] [code=fw:dawz4t3c]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">local</span> oBrush, oFont<br />     <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br />     <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"background"</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWndMain <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Moduli"</span> <span style="color: #0000ff;">MDI</span> <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">VSCROLL</span> <span style="color: #0000ff;">HSCROLL</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br />   oWndMain:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br /><br />   BuildMainBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> MSGBAR <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Easyrep app"</span> ;<br />      <span style="color: #0000ff;">OF</span> oWndMain <span style="color: #000000;">2015</span> KEYBOARD DATE<br /><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWndMain <span style="color: #0000ff;">MAXIMIZED</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br /> <span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------------//</span><br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">local</span> oMenu<br /><br />   <span style="color: #0000ff;">MENU</span> oMenu<br /><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Tasks"</span><br />      <span style="color: #0000ff;">MENU</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Moduli"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Clients"</span>  <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Items"</span>    <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br />         <span style="color: #0000ff;">SEPARATOR</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">ACTION</span> oWndMain:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">ENDMENU</span><br /><br />      oMenu:<span style="color: #000000;">AddMDI</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oMenu:<span style="color: #000000;">AddHelp</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" app"</span>, <span style="color: #ff0000;">"(c) FiveTech Software"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ENDMENU</span><br /><br />   <span style="color: #00C800;">return</span> oMenu<br /><span style="color: #B900B9;">//-------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> BuildMainBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /> *  <span style="color: #00C800;">local</span> oBar<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWndMain <span style="color: #000000;">2013</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">60</span> <span style="color: #B900B9;">//70</span><br /><br /><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Config"</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"BTN_CONFIG"</span> ;<br />       <span style="color: #0000ff;">ACTION</span> Config<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />  <span style="color: #B900B9;">//----------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Config<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> oDlg,oFolder<br />   <span style="color: #00C800;">local</span> oFontDialog,oFontBold<br />   <span style="color: #00C800;">local</span> oBarDialog<br />   <span style="color: #00C800;">local</span> nHeight:= <span style="color: #000000;">680</span><br /><br />  <span style="color: #00C800;">local</span> aFolder := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Azienda"</span>,<span style="color: #ff0000;">"Generale"</span>,<span style="color: #ff0000;">"Contabilità"</span>,<span style="color: #ff0000;">"Articoli e Documenti"</span>,<span style="color: #ff0000;">"Vendita touch"</span>,<span style="color: #ff0000;">"Riparazioni"</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> oIcon<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontDialog <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span>  BOLD<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg        ;<br />   <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Configurazione"</span>    ;<br />   <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">870</span>,nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL               ; <span style="color: #B900B9;">//  RESIZABLE</span><br />   <span style="color: #0000ff;">COLOR</span> CLR_BLACK,  nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>,<span style="color: #000000;">244</span>,<span style="color: #000000;">234</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">FONT</span> oFontDialog <span style="color: #0000ff;">ICON</span> oIcon<br /><br />  <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBarDialog <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">80</span>  <span style="color: #000000;">2015</span>   BOTTOM NOBORDER<br /><br /><br /><br /> @<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> FOLDEREX oFolder <span style="color: #0000ff;">PROMPTS</span> aFolder ;<br />   <span style="color: #0000ff;">SIZE</span> oDlg:<span style="color: #000000;">nWidth</span>,oDlg:<span style="color: #000000;">nHeight</span>-oBarDialog:<span style="color: #000000;">nheight</span>  <span style="color: #0000ff;">PIXEL</span>   ;<br />   <span style="color: #0000ff;">FONT</span> oFontDialog  ;<br />   <span style="color: #0000ff;">COLOR</span> nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>,<span style="color: #000000;">244</span>,<span style="color: #000000;">234</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ROUND</span> <span style="color: #000000;">0</span><br /><br /><br /> oFolder:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>oFolder:<span style="color: #000000;">nOption</span>=<span style="color: #000000;">3</span> .or. oFolder:<span style="color: #000000;">nOption</span>=<span style="color: #000000;">6</span> ,oDlg:<span style="color: #000000;">nHeight</span>:=<span style="color: #000000;">400</span>,oDlg:<span style="color: #000000;">nHeight</span>:=<span style="color: #000000;">680</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br /><br />  oDlg:<span style="color: #000000;">bResized</span>  := <||<br />              <span style="color: #00C800;">local</span> oRect    := oDlg:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />              oFolder:<span style="color: #000000;">nTop</span> := oRect:<span style="color: #000000;">ntop</span><span style="color: #000000;">+10</span><br />              oFolder:<span style="color: #000000;">nHeight</span> := oRect:<span style="color: #000000;">nbottom</span><span style="color: #000000;">-90</span><br />              oFolder:<span style="color: #000000;">nWidth</span>  := oRect:<span style="color: #000000;">nWidth</span><br />              oBarDialog:<span style="color: #000000;">GoDown</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />              oBarDialog:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />              <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />             ><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />   <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span>  Eval<span style="color: #000000;">&#40;</span>  oDlg:<span style="color: #000000;">bResized</span><span style="color: #000000;">&#41;</span>,;<br />                oBarDialog:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />              Eval<span style="color: #000000;">&#40;</span>oFolder:<span style="color: #000000;">baction</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:dawz4t3c]
strange move Folder - Dialog
You can use oDlg: Move (nTop, nLeft) to handle that behavior, Saludos
strange move Folder - Dialog
// \samples\CONFIGUR.PRG Si comprendo, lo haria asi: [code=fw:2p3hjl4n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oBar<br /><span style="color: #00C800;">STATIC</span> oWnd<br /><span style="color: #00C800;">STATIC</span> oDlg<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBrush, oFont<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">12</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//DEFINE BRUSH oBrush RESOURCE "background"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>rush1.bmp"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Moduli"</span> <span style="color: #0000ff;">MDI</span> <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VSCROLL</span> <span style="color: #0000ff;">HSCROLL</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;BuildMainBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGBAR <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Easyrep app"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2015</span> KEYBOARD DATE<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oMenu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Tasks"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Moduli"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Clients"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Items"</span> &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br /><br />&nbsp; &nbsp; &nbsp; oMenu:<span style="color: #000000;">AddMDI</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oMenu:<span style="color: #000000;">AddHelp</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" app"</span>, <span style="color: #ff0000;">"(c) FiveTech Software"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> oMenu <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> BuildMainBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// DEFINE BUTTONBAR oBar OF oWnd 2013 SIZE 70, 60</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar BUTTONSIZE <span style="color: #000000;">70</span>, <span style="color: #000000;">60</span> _3DLOOK TOP <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2013</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp;DEFINE BUTTON OF oBar PROMPT "Config" RESOURCE "BTN_CONFIG" ;<br />&nbsp; &nbsp; &nbsp; ACTION Config()<br />&nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Config"</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\H</span>elp.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> Config<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Config<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFld<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFontDialog, oFontBold<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBarDialog<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nHeight := <span style="color: #000000;">680</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nTopR &nbsp; := <span style="color: #000000;">80</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nLeftR &nbsp;:= <span style="color: #000000;">80</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nGris &nbsp; := nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">25</span>, <span style="color: #000000;">25</span>, <span style="color: #000000;">25</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aFolder := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Azienda"</span>, <span style="color: #ff0000;">"Generale"</span>, <span style="color: #ff0000;">"Contabilità"</span>, <span style="color: #ff0000;">"Articoli e Documenti"</span>, <span style="color: #ff0000;">"Vendita touch"</span>, <span style="color: #ff0000;">"Riparazioni"</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oIcon<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontDialog <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">14</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBold &nbsp; <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">14</span> &nbsp;BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Configurazione"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; COLORS CLR_WHITE, nGris &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFontDialog <span style="color: #0000ff;">ICON</span> oIcon<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBarDialog <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">80</span> <span style="color: #000000;">2015</span> BOTTOM NOBORDER<br /><br />&nbsp; &nbsp;@<span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> FOLDEREX oFld <span style="color: #0000ff;">PROMPTS</span> aFolder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> oDlg:<span style="color: #000000;">nWidth</span>, oDlg:<span style="color: #000000;">nHeight</span> - oBarDialog:<span style="color: #000000;">nheight</span> &nbsp;<span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFontDialog &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>, <span style="color: #000000;">244</span>, <span style="color: #000000;">234</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ROUND</span> <span style="color: #000000;">5</span><br /><br />&nbsp; &nbsp;oFld:<span style="color: #000000;">SetOption</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CREAR_DIALOGO_FLD( oFld, oFld:nOption )</span><br />&nbsp; &nbsp;oFld:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> || CREAR_DIALOGO_FLD<span style="color: #000000;">&#40;</span> oFld, oFld:<span style="color: #000000;">nOption</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;oFontDialog:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFontBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> CREAR_DIALOGO_FLD<span style="color: #000000;">&#40;</span> oFld, nNOption <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nHeight, nTopR, nLeftR<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFontDialog, oFontBold<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nGris &nbsp; := nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">25</span>, <span style="color: #000000;">25</span>, <span style="color: #000000;">25</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg1, oDlg2, oDlg3, oDlg4, oDlg5, oDlg6<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontDialog <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">14</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBold &nbsp; <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">14</span> &nbsp;BOLD<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; nHeight := <span style="color: #000000;">800</span><br />&nbsp; &nbsp; &nbsp; nTopR &nbsp; := <span style="color: #000000;">400</span><br />&nbsp; &nbsp; &nbsp; nLeftR &nbsp;:= <span style="color: #000000;">400</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Primera Dialog"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> &nbsp;<span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORS CLR_WHITE, nGris &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />&nbsp; &nbsp; &nbsp; oDlg1:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />&nbsp; &nbsp;ELSEIF<span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp; &nbsp; nHeight := <span style="color: #000000;">600</span><br />&nbsp; &nbsp; &nbsp; nTopR &nbsp; := <span style="color: #000000;">150</span><br />&nbsp; &nbsp; &nbsp; nLeftR &nbsp;:= <span style="color: #000000;">150</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg2 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Segunda Dialog"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> &nbsp;<span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORS CLR_WHITE, nGris &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />&nbsp; &nbsp; &nbsp; oDlg2:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg2 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />&nbsp; &nbsp;ELSEIF<span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">3</span><br /><br />&nbsp; &nbsp; &nbsp; nHeight := <span style="color: #000000;">400</span><br />&nbsp; &nbsp; &nbsp; nTopR &nbsp; := <span style="color: #000000;">160</span><br />&nbsp; &nbsp; &nbsp; nLeftR &nbsp;:= <span style="color: #000000;">160</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg3 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"tercera Dialog"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> &nbsp;<span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORS CLR_WHITE, nGris &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />&nbsp; &nbsp; &nbsp; oDlg3:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg3 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />&nbsp; &nbsp;ELSEIF<span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">4</span><br /><br />&nbsp; &nbsp; &nbsp; nHeight := <span style="color: #000000;">450</span><br />&nbsp; &nbsp; &nbsp; nTopR &nbsp; := <span style="color: #000000;">170</span><br />&nbsp; &nbsp; &nbsp; nLeftR &nbsp;:= <span style="color: #000000;">170</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg4 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Quarta Dialog"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> &nbsp;<span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORS CLR_WHITE, nGris &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />&nbsp; &nbsp; &nbsp; oDlg4:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg4 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />&nbsp; &nbsp;ELSEIF<span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">5</span><br /><br />&nbsp; &nbsp; &nbsp; nHeight := <span style="color: #000000;">500</span><br />&nbsp; &nbsp; &nbsp; nTopR &nbsp; := <span style="color: #000000;">180</span><br />&nbsp; &nbsp; &nbsp; nLeftR &nbsp;:= <span style="color: #000000;">180</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg5 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Quinta Dialog"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> &nbsp;<span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORS CLR_WHITE, nGris &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />&nbsp; &nbsp; &nbsp; oDlg5:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg5 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />&nbsp; &nbsp;ELSEIF<span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">6</span><br /><br />&nbsp; &nbsp; &nbsp; nHeight := <span style="color: #000000;">550</span><br />&nbsp; &nbsp; &nbsp; nTopR &nbsp; := <span style="color: #000000;">200</span><br />&nbsp; &nbsp; &nbsp; nLeftR &nbsp;:= <span style="color: #000000;">200</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg6 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Sexta Dialog"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> &nbsp;<span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORS CLR_WHITE, nGris &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />&nbsp; &nbsp; &nbsp; oDlg6:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg6 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oFontDialog:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFontBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// fin / end</span><br />&nbsp;</div>[/code:2p3hjl4n]
strange move Folder - Dialog
[quote="karinha":2cpt1b99]// \samples\CONFIGUR.PRG Si comprendo, lo haria asi: [code=fw:2cpt1b99]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oBar<br /><span style="color: #00C800;">STATIC</span> oWnd<br /><span style="color: #00C800;">STATIC</span> oDlg<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oBrush, oFont<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">12</span><br /><br />   <span style="color: #B900B9;">//DEFINE BRUSH oBrush RESOURCE "background"</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>rush1.bmp"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Moduli"</span> <span style="color: #0000ff;">MDI</span> <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">VSCROLL</span> <span style="color: #0000ff;">HSCROLL</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br /><br />   oWnd:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br /><br />   BuildMainBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> MSGBAR <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Easyrep app"</span> ;<br />      <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2015</span> KEYBOARD DATE<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oMenu<br /><br />   <span style="color: #0000ff;">MENU</span> oMenu<br /><br />   <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Tasks"</span><br /><br />      <span style="color: #0000ff;">MENU</span><br /><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Moduli"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Clients"</span>  <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Items"</span>    <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br /><br />         <span style="color: #0000ff;">SEPARATOR</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #0000ff;">ENDMENU</span><br /><br />      oMenu:<span style="color: #000000;">AddMDI</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oMenu:<span style="color: #000000;">AddHelp</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" app"</span>, <span style="color: #ff0000;">"(c) FiveTech Software"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> oMenu <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> BuildMainBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// DEFINE BUTTONBAR oBar OF oWnd 2013 SIZE 70, 60</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar BUTTONSIZE <span style="color: #000000;">70</span>, <span style="color: #000000;">60</span> _3DLOOK TOP <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2013</span><br /><br />   <span style="color: #B900B9;">/*<br />   DEFINE BUTTON OF oBar PROMPT "Config" RESOURCE "BTN_CONFIG" ;<br />      ACTION Config()<br />   */</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Config"</span>   ;<br />      FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\H</span>elp.bmp"</span> ;<br />      <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> Config<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Config<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oFld<br />   <span style="color: #00C800;">LOCAL</span> oFontDialog, oFontBold<br />   <span style="color: #00C800;">LOCAL</span> oBarDialog<br />   <span style="color: #00C800;">LOCAL</span> nHeight := <span style="color: #000000;">680</span><br />   <span style="color: #00C800;">Local</span> nTopR   := <span style="color: #000000;">80</span><br />   <span style="color: #00C800;">Local</span> nLeftR  := <span style="color: #000000;">80</span><br />   <span style="color: #00C800;">Local</span> nGris   := nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">25</span>, <span style="color: #000000;">25</span>, <span style="color: #000000;">25</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> aFolder := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Azienda"</span>, <span style="color: #ff0000;">"Generale"</span>, <span style="color: #ff0000;">"Contabilità"</span>, <span style="color: #ff0000;">"Articoli e Documenti"</span>, <span style="color: #ff0000;">"Vendita touch"</span>, <span style="color: #ff0000;">"Riparazioni"</span> <span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">LOCAL</span> oIcon<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontDialog <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">14</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBold   <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">14</span>  BOLD<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span> ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Configurazione"</span>                                        ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL                             ;<br />      COLORS CLR_WHITE, nGris                                       ;<br />      <span style="color: #0000ff;">FONT</span> oFontDialog <span style="color: #0000ff;">ICON</span> oIcon<br /><br />   oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBarDialog <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">80</span> <span style="color: #000000;">2015</span> BOTTOM NOBORDER<br /><br />   @<span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> FOLDEREX oFld <span style="color: #0000ff;">PROMPTS</span> aFolder                           ;<br />      <span style="color: #0000ff;">SIZE</span> oDlg:<span style="color: #000000;">nWidth</span>, oDlg:<span style="color: #000000;">nHeight</span> - oBarDialog:<span style="color: #000000;">nheight</span>  <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFontDialog                                           ;<br />      <span style="color: #0000ff;">COLOR</span> nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>, <span style="color: #000000;">244</span>, <span style="color: #000000;">234</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ROUND</span> <span style="color: #000000;">5</span><br /><br />   oFld:<span style="color: #000000;">SetOption</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// CREAR_DIALOGO_FLD( oFld, oFld:nOption )</span><br />   oFld:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> || CREAR_DIALOGO_FLD<span style="color: #000000;">&#40;</span> oFld, oFld:<span style="color: #000000;">nOption</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />   oFontDialog:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> CREAR_DIALOGO_FLD<span style="color: #000000;">&#40;</span> oFld, nNOption <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> nHeight, nTopR, nLeftR<br />   <span style="color: #00C800;">LOCAL</span> oFontDialog, oFontBold<br />   <span style="color: #00C800;">LOCAL</span> nGris   := nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">25</span>, <span style="color: #000000;">25</span>, <span style="color: #000000;">25</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oDlg1, oDlg2, oDlg3, oDlg4, oDlg5, oDlg6<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontDialog <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">14</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBold   <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">14</span>  BOLD<br /><br />   <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">1</span><br /><br />      nHeight := <span style="color: #000000;">800</span><br />      nTopR   := <span style="color: #000000;">400</span><br />      nLeftR  := <span style="color: #000000;">400</span><br /><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span>  ;<br />         <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Primera Dialog"</span>                                          ;<br />         <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL                              ;<br />         COLORS CLR_WHITE, nGris                                         ;<br />         <span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />      oDlg1:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />      <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />   ELSEIF<span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">2</span><br /><br />      nHeight := <span style="color: #000000;">600</span><br />      nTopR   := <span style="color: #000000;">150</span><br />      nLeftR  := <span style="color: #000000;">150</span><br /><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg2 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span>  ;<br />         <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Segunda Dialog"</span>                                          ;<br />         <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL                              ;<br />         COLORS CLR_WHITE, nGris                                         ;<br />         <span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />      oDlg2:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />      <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg2 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />   ELSEIF<span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">3</span><br /><br />      nHeight := <span style="color: #000000;">400</span><br />      nTopR   := <span style="color: #000000;">160</span><br />      nLeftR  := <span style="color: #000000;">160</span><br /><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg3 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span>  ;<br />         <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"tercera Dialog"</span>                                          ;<br />         <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL                              ;<br />         COLORS CLR_WHITE, nGris                                         ;<br />         <span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />      oDlg3:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />      <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg3 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />   ELSEIF<span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">4</span><br /><br />      nHeight := <span style="color: #000000;">450</span><br />      nTopR   := <span style="color: #000000;">170</span><br />      nLeftR  := <span style="color: #000000;">170</span><br /><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg4 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span>  ;<br />         <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Quarta Dialog"</span>                                           ;<br />         <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL                              ;<br />         COLORS CLR_WHITE, nGris                                         ;<br />         <span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />      oDlg4:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />      <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg4 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />   ELSEIF<span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">5</span><br /><br />      nHeight := <span style="color: #000000;">500</span><br />      nTopR   := <span style="color: #000000;">180</span><br />      nLeftR  := <span style="color: #000000;">180</span><br /><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg5 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span>  ;<br />         <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Quinta Dialog"</span>                                           ;<br />         <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL                              ;<br />         COLORS CLR_WHITE, nGris                                         ;<br />         <span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />      oDlg5:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />      <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg5 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />   ELSEIF<span style="color: #000000;">&#40;</span> nNOption <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">6</span><br /><br />      nHeight := <span style="color: #000000;">550</span><br />      nTopR   := <span style="color: #000000;">200</span><br />      nLeftR  := <span style="color: #000000;">200</span><br /><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg6 <span style="color: #0000ff;">FROM</span> nTopR, nLeftR <span style="color: #0000ff;">TO</span> nTopR + <span style="color: #000000;">80</span>, nLeftR + <span style="color: #000000;">80</span>  ;<br />         <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"_ Dialog"</span>                                            ;<br />         <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">870</span>, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL                              ;<br />         COLORS CLR_WHITE, nGris                                         ;<br />         <span style="color: #0000ff;">FONT</span> oFontDialog<br /><br />      oDlg6:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />      <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg6 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   oFontDialog:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// fin / end</span><br /> </div>[/code:2cpt1b99][/quote:2cpt1b99] resolved ( thanks to Rao) with only local aPt := { 111,200 } aPt := ClientToScreen( oWndMain:hWnd, aPt ) oFolder:bAction := { || IF(oFolder:nOption=3 .or. oFolder:nOption=6 ,; (oDlg:nHeight:=400,oDlg:Move( aPt[ 1 ] , aPt[ 2 ] )),; (oDlg:nHeight:=680,oDlg:Move( aPt[ 1 ] , aPt[ 2 ] )) ) } Found on another topic
strange move Folder - Dialog
Silvio, just curiosity, final code? You can show? If you can't, no problem. Programmer's curiosity only. Regards, saludos.
strange move Folder - Dialog
[quote="karinha":amdq9913]Silvio, just curiosity, final code? You can show? If you can't, no problem. Programmer's curiosity only. Regards, saludos.[/quote:amdq9913] local aPt := { 111,200 } aPt := ClientToScreen( oWndMain:hWnd, aPt ) oFolder:bAction := { || IF(oFolder:nOption=3 .or. oFolder:nOption=6 ,; (oDlg:nHeight:=400,oDlg:Move( aPt[ 1 ] , aPt[ 2 ] )),; (oDlg:nHeight:=680,oDlg:Move( aPt[ 1 ] , aPt[ 2 ] )) ) } ACTIVATE DIALOG oDlg CENTERED ; ON INIT ( oDlg:Move( aPt[ 1 ] , aPt[ 2 ] ),; Eval( oDlg:bResized),; ChangeButtons(oBarDialog ),; oBarDialog:refresh(),; Eval(oFolder:baction) )
strange problem on Windows seven
I compile sample of Tcalex in [b:3jrd7vai]Windows Seven[/b:3jrd7vai] 64bit on Pc 8 GBRam I can insert records and set colors how you can see here : [img:3jrd7vai]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2014/06/test_calex&#46;jpg[/img:3jrd7vai] I close the EXE then I re open the ese sample test and the exe make this error [code=fw:3jrd7vai]<div class="fw" id="{CB}" style="font-family: monospace;">Windows version: <span style="color: #000000;">5.1</span>, Build <span style="color: #000000;">2600</span> Service Pack <span style="color: #000000;">3</span><br /><br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">0</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">06</span>/<span style="color: #000000;">11</span>/<span style="color: #000000;">2014</span>, <span style="color: #000000;">12</span>:<span style="color: #000000;">59</span>:<span style="color: #000000;">30</span><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1076</span> &nbsp;Parametro errato: >=<br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = D &nbsp; <span style="color: #000000;">06</span>/<span style="color: #000000;">09</span>/<span style="color: #000000;">2014</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = U &nbsp; <br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\prg\tcalex.prg => TDAYVIEW:<span style="color: #000000;">BUILDDATES</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">309</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\prg\tcalex.prg => TDAYVIEW:<span style="color: #000000;">SETINTERVAL</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1367</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">sample01</span>.prg => SAMPLECALEX:<span style="color: #000000;">BUILDCALEX</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">189</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">sample01</span>.prg => SAMPLECALEX:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">117</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">sample01</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">45</span> <span style="color: #000000;">&#41;</span></div>[/code:3jrd7vai] if I erase citas.dbf then the exe run ok how I can resolve it ?
strange problem with compilation
I trying to use harbour to compile and I use xmate I change parameter to use bccc7 but on error log when the app make error is showed Compiler version: Harbour 3.2.0dev (r1406271520) FiveWin version: FWH 17.02 [b:1ye5mbfl]C compiler version: Borland C++ 5.8.2 (32-bit)[/b:1ye5mbfl] Windows version: 6.1, Build 7600 why ? Where is the error ? [b:1ye5mbfl]I use this Env to compile with harbour [/b:1ye5mbfl] [code=fw:1ye5mbfl]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#91;</span>Environment<span style="color: #000000;">&#93;</span><br />Description <span style="color: #000000;">1</span>=Fivewin per harbour <br />Description <span style="color: #000000;">2</span>=<br />Description <span style="color: #000000;">3</span>=<br />PRG Compiler ver=<br />C compiler ver=<br />Subsystem=<br />Author=Falconi Silvio<br />Last <span style="color: #0000ff;">update</span>=<span style="color: #000000;">04</span>/<span style="color: #000000;">15</span>/<span style="color: #000000;">2016</span><br /><br /><span style="color: #000000;">&#91;</span>Advanced<span style="color: #000000;">&#93;</span><br />Command types=<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><br /><br /><span style="color: #000000;">&#91;</span>Harbour<span style="color: #000000;">&#93;</span><br />HB_INSTALL=c:\work\Harbour<br />HB_COMMAND=%HB_BIN_INSTALL%\Harbour.Exe %PRG% /m /n0 /gc1 /es2 /i%HB_INC_INSTALL% /jitaliano.HIT /iinclude;c:\work\fwh\include;%HB_INSTALL%\include<br />Option prefix=/<br /><br /><span style="color: #000000;">&#91;</span>C<span style="color: #000000;">&#93;</span><br />C_INSTALL=C:\WORK\bcc7<br />C_COMP_COMMAND=%C_BIN_INSTALL%\Bcc32.Exe -M -c -O2 &nbsp;-tW -v- -X %CRLF%-DHB_FM_STATISTICS_OFF %CRLF%-DHB_NO_DEFAULT_API_MACROS %CRLF%-DHB_NO_DEFAULT_STACK_MACROS %CRLF%-DHB_OS_WIN_32 %CRLF%-I%C_INC_INSTALL%;%HB_INC_INSTALL% &nbsp;-n%HOME%\Obj %C%%CRLF%<br />C_LIB_COMMAND=%C_BIN_INSTALL%\TLib.Exe %LIB% /P512 @%RSP% , %LST%<br />C_LINK_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -aa -Tpe -s @%LNK%<br />C_RC_COMMAND=c:\work\PellesC\Bin\PORC.EXE &nbsp;%RC% &nbsp;/I c:\work\pellesc\include /I c:\work\pellesc\include\win<br />C_DLL_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -aa -Tpd -M -L%C_LIB_INSTALL% @%LNK%<br />Option prefix=-<br /><br /><span style="color: #000000;">&#91;</span>User<span style="color: #000000;">&#93;</span><br />POSTEXE_COMMAND=<br />POSTLIB_COMMAND=<br />POSTDLL_COMMAND=<br /><br /><span style="color: #000000;">&#91;</span>Files<span style="color: #000000;">&#93;</span><br />%C_LIB_INSTALL%\C0W32.OBJ=<span style="color: #000000;">1</span><br />%C_LIB_INSTALL%\CW32.LIB=<span style="color: #000000;">2</span><br />C:\Work\FWH\lib\Fiveh.lib=<span style="color: #000000;">3</span><br />C:\Work\FWH\lib\Fivehc.lib=<span style="color: #000000;">4</span><br />%HB_LIB_INSTALL%\hbrtl.lib=<span style="color: #000000;">5</span><br />%HB_LIB_INSTALL%\hbvm.lib=<span style="color: #000000;">6</span><br />%HB_LIB_INSTALL%\hbgt.lib=<span style="color: #000000;">7</span><br />%HB_LIB_INSTALL%\gtgui.lib=<span style="color: #000000;">8</span><br />%HB_LIB_INSTALL%\hblang.lib=<span style="color: #000000;">9</span><br />%HB_LIB_INSTALL%\hbmacro.lib=<span style="color: #000000;">10</span><br />%HB_LIB_INSTALL%\hbcommon.lib=<span style="color: #000000;">11</span><br />%HB_LIB_INSTALL%\hbpp.lib=<span style="color: #000000;">12</span><br />%HB_LIB_INSTALL%\hbrdd.lib=<span style="color: #000000;">13</span><br />%HB_LIB_INSTALL%\rddntx.lib=<span style="color: #000000;">14</span><br />%HB_LIB_INSTALL%\rddcdx.lib=<span style="color: #000000;">15</span><br />%HB_LIB_INSTALL%\rddfpt.lib=<span style="color: #000000;">16</span><br />%HB_LIB_INSTALL%\hbwin.lib=<span style="color: #000000;">17</span><br />%HB_LIB_INSTALL%\hbsix.lib=<span style="color: #000000;">18</span><br />%HB_LIB_INSTALL%\hbziparc.lib=<span style="color: #000000;">19</span><br />%HB_LIB_INSTALL%\hbcpage.lib=<span style="color: #000000;">20</span><br />%HB_LIB_INSTALL%\hbcplr.lib=<span style="color: #000000;">21</span><br />%HB_LIB_INSTALL%\hbmzip.lib=<span style="color: #000000;">22</span><br />%HB_LIB_INSTALL%\minizip.lib=<span style="color: #000000;">23</span><br />%HB_LIB_INSTALL%\xhb.lib=<span style="color: #000000;">24</span><br />%HB_LIB_INSTALL%\hbpcre.lib=<span style="color: #000000;">25</span><br />%HB_LIB_INSTALL%\hbct.lib=<span style="color: #000000;">26</span><br />%HB_LIB_INSTALL%\hbzlib.lib=<span style="color: #000000;">27</span><br />%C_LIB_INSTALL%\uuid.lib=<span style="color: #000000;">28</span><br />%C_LIB_INSTALL%\IMPORT32.LIB=<span style="color: #000000;">29</span><br />%C_LIB_INSTALL%\PSDK\odbc32.lib=<span style="color: #000000;">30</span><br />%C_LIB_INSTALL%\PSDK\nddeapi.lib=<span style="color: #000000;">31</span><br />%C_LIB_INSTALL%\PSDK\iphlpapi.lib=<span style="color: #000000;">32</span><br />%C_LIB_INSTALL%\PSDK\msimg32.lib=<span style="color: #000000;">33</span><br />%C_LIB_INSTALL%\PSDK\ws2_32.lib=<span style="color: #000000;">34</span><br />%C_LIB_INSTALL%\PSDK\psapi.lib=<span style="color: #000000;">35</span><br />%C_LIB_INSTALL%\PSDK\rasapi32.lib=<span style="color: #000000;">36</span><br />%HB_LIB_INSTALL%\png.lib=<span style="color: #000000;">37</span><br />%C_LIB_INSTALL%\PSDK\shell32.lib=<span style="color: #000000;">38</span><br /><br /><span style="color: #000000;">&#91;</span>DLL Files<span style="color: #000000;">&#93;</span><br />%HB_LIB_INSTALL%\harbour.lib=<span style="color: #000000;">1</span><br />%C_LIB_INSTALL%\C0W32.OBJ=<span style="color: #000000;">2</span><br />%C_LIB_INSTALL%\CW32.LIB=<span style="color: #000000;">3</span><br />%C_LIB_INSTALL%\IMPORT32.LIB=<span style="color: #000000;">4</span><br />&nbsp;</div>[/code:1ye5mbfl]
strange problem with compilation
C compiler version: Borland C++ 5.8.2 (32-bit) with FWH1702 ???
strange problem with compilation
the problem I use bcc7 and on the error .log show me bcc582
strange problem with compilation
Check the paths where the project compilers are. TRY TO DO SO AS I USE: [code=fw:y8arih7j]<div class="fw" id="{CB}" style="font-family: monospace;"><br />C:\FWH1701<br />C:\BCC72<br />C:\HBBCC72<br />&nbsp;</div>[/code:y8arih7j] Regards, saludos.
strange problem with compilation
Files *.CFG? [code=fw:1nwdggtx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />-I<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc72<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\d</span>inkumware"</span>;<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc72<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\c</span>rtl"</span>;<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc72<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\r</span>tl"</span>;<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc72<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\s</span>dk"</span>;<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc72<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\s</span>dk<span style="color: #000000;">\a</span>tl"</span><br />-L<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc72<span style="color: #000000;">\l</span>ib"</span>;<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc72<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\p</span>sdk"</span><br />&nbsp;</div>[/code:1nwdggtx] [code=fw:1nwdggtx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />-L<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc72<span style="color: #000000;">\l</span>ib"</span>;<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc72<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\p</span>sdk"</span><br />&nbsp;</div>[/code:1nwdggtx]
strange problem with compilation
I use xmake with env files
strange problem with compilation
Sorry, I do not use xmate or xmake.
strange problem with tdatabase
I must erase all record of an invoice number ( the filed is 13cr) Local nInvoice := "1234567890128" the oPartres dbf is index on INDEX ON RESITEMS->INVNUM + STR( SERIAL, 3, 0 ) TAG invnum TO resitems oPartres:=TDatabase():Open( , cDir+"ResItems", "DBFCDX", .T. ) oPartres:setorder(1) oPartres:gotop() oPartRes:Gotop() Do While .not. oPartRes:eof() [b:3v0ksu1x]IF alltrim(oPartRes:InvNum) == alltrim(nInvoice)[/b:3v0ksu1x] // Msginfo( oPartRes:InvNum ,nInvoice) oPartRes:delete() [b:3v0ksu1x]Endif[/b:3v0ksu1x] oPartRes:skip() EndDo oPartRes:Gotop() SET DELETED ON oPartRes:SetOrder( 0 ) oPartRes:GoTo( 1 ) oPartRes:ArrayToDBF( aItems, cItemFlds, nil, .t., .t. ) it save goog but erased all records I wish save on dbf with the condition alltrim(oPartRes:InvNum) == alltrim(nInvoice Any solution please ...
strange problem with tdatabase
Perhaps I resolve but I not Know it it is correct [code=fw:1f6qz7mm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; SET DELETED &nbsp;<span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp; oPartRes:<span style="color: #000000;">setorder</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oPartRes:<span style="color: #000000;">Exec</span><span style="color: #000000;">&#40;</span> < ||<br />&nbsp; &nbsp; SET FILTER <span style="color: #0000ff;">TO</span> AllTrim<span style="color: #000000;">&#40;</span> FIELD->INVNUM <span style="color: #000000;">&#41;</span> = alltrim<span style="color: #000000;">&#40;</span>nInvoice<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oPartRes:<span style="color: #000000;">gotop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oPartRes:<span style="color: #000000;">ArrayToDBF</span><span style="color: #000000;">&#40;</span> aItems, cItemFlds,<span style="color: #00C800;">nil</span> , .t., .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oPartRes:<span style="color: #000000;">SetFilter</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1f6qz7mm] any suggestion ?
strange problem with tdatabase
[quote:2xfijunq] I must erase all record of an invoice number [/quote:2xfijunq] If you want to delete all records where the field INVNUM == nInvoice, i.e., "1234567890128", then: [code] Local nInvoice := "1234567890128" oPartres:Exec( <|| DELETE ALL FOR ALLTRIM(FIIELD->INVNUM) == nInvoice > ) [code]
strange problem with tdatabase
You want to read all records relating to one invoice, add/edit/delete in memory and save all changes at once to the database. FWH1907 simplifies the entire process. [code=fw:21roa75k]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBatch := oPartRes:<span style="color: #000000;">ReadBatch</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"INVNUM"</span>, nInvoice <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">// oBatch is like a mini Tdatabase</span><br /><span style="color: #B900B9;">// Browse, Edit, Append, Delete records in oBatch</span><br /><span style="color: #B900B9;">// All changes are made in memory only and not written to database</span><br /><span style="color: #B900B9;">// When you want to write all changes, call</span><br />oBatch:<span style="color: #000000;">SaveBatch</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//If you change the invoice number in the main table</span><br />oBatch:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"INVNUM"</span>, nInvoce <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// loads records of new invoice number</span><br />&nbsp;</div>[/code:21roa75k] Please wait for a sample
strange problem with tdatabase
Nages I must use an array for the invoice body (xbrowse) where the first line (which cannot be deleted by the user only it can be modified) is like a repetition of the element described in the header ( saved on Reserva.dbf) for example: [b:2p8we2b0]HEADER[/b:2p8we2b0] [img:2p8we2b0]https&#58;//i&#46;postimg&#46;cc/dDMLTW0b/header&#46;png[/img:2p8we2b0] [b:2p8we2b0]BODY[/b:2p8we2b0] [img:2p8we2b0]https&#58;//i&#46;postimg&#46;cc/vHdnTB6c/uno&#46;png[/img:2p8we2b0] then the other lines of body are the services associated to this element [img:2p8we2b0]https&#58;//i&#46;postimg&#46;cc/cJ6g2tP5/due&#46;png[/img:2p8we2b0] when the user change something of the first line of Xbrowse ( for a sample the dates) the procedure must change also the header I need this solution because I have to enter the price of the item (ie the first line of the xbrowse) and then the prices of the other lines (services) [b:2p8we2b0]Reserva.dbf[/b:2p8we2b0] must have only the element number the arrival and departure dates the total cost and the customer, while in detail ([b:2p8we2b0]resItems.dbf[/b:2p8we2b0]) there must be all the prices of both the element and the services associated with the element doing so I do not know if I should save all the lines of the body or delete the first line and insert it again to the modification I have big problems with the rescue now I'm trying this solution 1) delete all records on resItems.dbf having the same invoice number 2) re-enter the invoice item on resItems.dbfs from the aItems array but I did not understand if it is correct to do this, or there is another method then I have the problem of the lock record in reserva that is 1) I have to take the record on reserva.dbf 2) upload the invoice details to aItems 3) work on xbrowse 4) save on Resitems.dbf 5) save the record on reserva.dbf 6) unlock the record on reserva.dbf but I still haven't figured out how I can do it
strange problem with tdatabase
[quote="nageswaragunupudi":16vfs3kp][quote:16vfs3kp] I must erase all record of an invoice number [/quote:16vfs3kp][/quote:16vfs3kp] If you want to delete all records where the field INVNUM == nInvoice, i.e., "1234567890128", then: [code=fw:16vfs3kp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Local</span> nInvoice := <span style="color: #ff0000;">"1234567890128"</span><br /><br />oPartres:<span style="color: #000000;">Exec</span><span style="color: #000000;">&#40;</span> <||<br />&nbsp; &nbsp;DELETE ALL <span style="color: #00C800;">FOR</span> ALLTRIM<span style="color: #000000;">&#40;</span>FIIELD->INVNUM<span style="color: #000000;">&#41;</span> == nInvoice<br />&nbsp; &nbsp;> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#91;</span>code<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>/quote<span style="color: #000000;">&#93;</span><br /><br />Error<br /><span style="color: #000000;">&#91;</span>code<span style="color: #000000;">&#93;</span>Application<br />===========<br />&nbsp; &nbsp;Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\Work\Errori\aarray_dlg_invoice\test.Exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Size</span>: <span style="color: #000000;">4</span>,<span style="color: #000000;">024</span>,<span style="color: #000000;">320</span> bytes<br />&nbsp; &nbsp;Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r1904111533<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">19.05</span><br />&nbsp; &nbsp;C compiler version: <span style="color: #000000;">Borland</span>/Embarcadero C++ <span style="color: #000000;">7.0</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span>-bit<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Windows version: <span style="color: #000000;">6.2</span>, Build <span style="color: #000000;">9200</span> <br /><br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">3</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">11</span><span style="color: #000000;">-08</span><span style="color: #000000;">-2019</span>, <span style="color: #000000;">20</span>:<span style="color: #000000;">36</span>:<span style="color: #000000;">04</span><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> DBFCDX/<span style="color: #000000;">1022</span> &nbsp;Richiede un Lock<br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> DBDELETE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EVAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">387</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> DBEVAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TEST_INVOICE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">387</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\DATABASE.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDATABASE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">140</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\DATABASE.PRG => TDATABASE:<span style="color: #000000;">EXEC</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test</span>.prg => TEST_INVOICE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">388</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">46</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:16vfs3kp]
strange problem with xbrowse
on this xbrowse I found a strange error the text[b:24dk6ksn] "Silvio"[/b:24dk6ksn] xbrowse show into [b:24dk6ksn]"si,vio"[/b:24dk6ksn] as you can see on this picture [img:24dk6ksn]http&#58;//img854&#46;imageshack&#46;us/img854/8868/strangexbrowse&#46;jpg[/img:24dk6ksn] I not use different setups ( languages) and I use on all dialog the font of system -> ::oFont = TFont():New( GetDefaultFontName(), 0, GetDefaultFontHeight(),, )
strange problem with xbrowse
Silvio, can You check the field with a external DBF-viewer ? Maybe a wrong fieldtype or wrong picture defined for the textfield < numeric PICTURE "99.999.99" > ? Best Regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
strange problem with xbrowse
[quote="ukoenig":37swznlu]Silvio, can You check the field with a external DBF-viewer ? Maybe a wrong fieldtype or wrong picture defined for the textfield < numeric PICTURE "99.999.99" > ? Best Regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->[/quote:37swznlu] Yes, this must be the reason.
strange problem with xbrowse
Sorry, I make a mistake You'are Right i change the number of column from 6to 7 and it run with errors <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: -->
strategies
Dear friend, I would like to ask you today about your assessment and strategies. Our customers are now increasingly looking for online solutions. We currently have no suitable strategies. It's also hard to build in new features that other programs do not offer. Kind regards Otto
strategies
Hi Otto, We have moved our systems to Mysql and that brought big improvements to our systems. Now the system can run on-line easily and faster than with ADS. We had a demand for development to android that we solve using another language.
strategies
Hi, That is a very interesting question for years. In some cases being on the web is already a must. In the rest it will be sooner or later. But nowadays it is no longer worth offering any web proposal: it must be responsive, but even so it is likely that customers still want more because they prefer a Progressive Web App. [url:2pe4bmf1]https&#58;//en&#46;wikipedia&#46;org/wiki/Progressive_web_applications[/url:2pe4bmf1] Regards
strategies
Hi, First important questions to think ... How much time do you want to spend learning to create a web application? How many new programming languages are you willing to learn? Would you change the way you create Windows applications to coexist with your new web applications ? <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> [quote="hmpaquito":2w066kjq]That is a very interesting question for years.[/quote:2w066kjq] Agree with you
strategies
Carles, what is your suggestion if I say: How much time do you want to spend learning to create a web application? not much How many new programming languages are you willing to learn? best no new Would you change the way you create Windows applications to coexist with your new web applications ? best not touching running systems With my answers I would like to express that there must be an economic way to be able to continue to use the existing programs. Best regards Otto
strategies
It's an interesting question, the dbf in my opinion are already obsolete. Migrating to a relational bbdd (SQL) is the minimum for these times since they allow us to be online permanently and from anywhere, as well as interacting with other applications (web or desktop). Now is a web or desktop application better? It all depends, I have developed an application for settlement of salaries on desktop and I have seen that same application developed in nodejs and mongodb. The latter is very fast but to perform the same task on the web you have to navigate through an infinity of pages while in the desktop you solve it on the same screen and this is nice for the end user. Probably over time these web problems are resolved, then we will have no choice but to make the leap. Saludos
strategies
Otto, there is no magic in our sector. Younger programmers use languages for the Web. They do not even dedicate themselves to desktop applications. They use bbdd NoSql that lack fully flexible and single-threaded structures and are very easy to scale, since they do not need powerful computers. You can work online or offline, once it connects automatically it is synchronized. The languages are asynchronous (Nodejs, Python, Ruby), something similar to harbor threads. I understand that we come from Clipper costs us but it is what is coming and our customers will increasingly demand more of these technologies. Harbor and Fivewin have given me many satisfactions but I understand that in the future this will not reach me. There is no other way to study if we want to continue in this sector or hire an external programmer to solve what we do not know how to do and in this case I prefer the former. Saludos
strategies
I stumbled upon [url=http&#58;//www&#46;dbfree&#46;org/home&#46;msp?XY=60343447:1alvkx39]dbFree[/url:1alvkx39] when I was researching the issue. Wonder how it compares to other approaches
strategies
Hi hua, I heard about DbFree, what about it? is a good solution? does someone use it?
strategies
All said and done, when we come to heavy duty and high volume Corporate applications we are back to robust RDBMS like Oracle and other next best databases. Well, there are more webbased applications than desktop applications now in operation everywhere. Again, when we talk to the users (employees) of these big corporates they say they miss the desktop applications.
strategies
Hi, We should think about expanding our channels and being able to offer our users complementary systems. It is not about excluding: I want Windows or I want Web. [quote="nageswaragunupudi":1antwa3g]Again, when we talk to the users (employees) of these big corporates they say they miss the desktop applications.[/quote:1antwa3g] It's true and i'm agree with you. When our customers say that they miss desktop applications, it is simply an application that we can do today with our FWH is fast, powerful, agile ... and unfortunately, doing something similar on the web is difficult, very complicated, very laborious , but not impossible. It is more a topic so that over the years we are experts in windows applications, but we know how complicated it is to do something similar on the web (and I do not mean a Hello world!) I like the way of programming of FWH and the programs in windows. It is for this reason that I try to "imitate" a bit the same design and logic in my web programs. And many people, especially the new generations, tell me that they are old designs, others that seem very friendly. Finally it is only the visual part and it could always be modified, but having everyone happy is impossible. But one thing is true ... The Internet has not become part of our business. As Otto says -> Strategies!
strategies
It is something I have considered for many years. My clients have to process a lot of data. I thought about web a lot but many of my customers have poor internet connections. They use the software to run their business every day, and would be in a very difficult position if that connection were lost. The application I focus on is very data intensive, and what looks good in a sales pitch is not as good when working with it all day long. The same discussion takes place with programming for the Apple environment. People constantly ask, and I use Apple computers to do my work, but what I must share about reality does not fit with the advertising they heard. It's a challenging time. I will continue to explore options but so far for my clients needs, the business based options are the best.
strategies
We talk about mobile devices (phones) or desktop computers (including laptops and tablets of an appropriate size), and always with Windows OS? I think there is a big difference in the approach of what the strategy to follow should be, and what users prefer. Another issue is that in mobile devices with operating systems other than Windows, for now, there is no choice but to see other possible solutions.
strategies
[quote="damianodec":10h3ov9x] I heard about DbFree, what about it? is a good solution? does someone use it?[/quote:10h3ov9x] Can't comment on it. Has never tried it before but am impressed that they actually have books about it.
strategies
I think one problem we have is that people see fantasy ware advertised, either by companies, or in media ( TV, movies, etc.). Or they see little apps that provide a bit of a helpful service. What they don't understand is how it all needs to tie together ( integrate ) with one common interface. That is just not happening in the web based world. They also don't understand the whole concept of shared, immediate, data processing. The fantasies they view they believe are available today, and often "developers" promise they can deliver those results. Time goes by, money is invested, and yet the end product never arrives. I keep looking, and listening, but for businesses the desktop, self contained system is still the most efficient and safe.
strategies
Hi, But regardless of all of us know and think that our applications made with fwh for windows are the best, reliable, ... (and it's true of course <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ) and as Tim says many expect the truth is that many have the concern and need to start offering solutions via the Internet. This is the reality And the title of this topic is ... [b:2fneegvw]strategies[/b:2fneegvw]. And continuing with my initial questions ... Here are the following: Do we want to learn and to be experts in the different languages of the different platforms of the market? - Android with java - iOS with swift - Web with java, php, html, css, javascript, and a lot of framekorks ... (hundreds of them) Are we able to take on so much knowledge to control all this? My answer is: If we are a big company and we have many employees, and each of them is an expert in one of these technologies ... maybe we can. Easy ! Meanwhile, , if we are software developers... what can we do? Are we still waiting and listening ? Nice weekend friends.
strategies
Es un tema muy amplio e interesante. Pero como dice Carles, es muy duro (si somos desarrolladores independientes), asumir el costo y el esfuerzo de asimilar todo ese conocimiento. También comparto con Tim y Mr. Rao, que hay usuarios que prefieren (por su practicidad) el uso de sistemas de escritorio para procesamiento y carga de grandes volúmenes de datos (por la practicidad de resolver en una pantalla varios procesos). Pero por experiencia, los nuevos usuario requieren que cierta información pueda ser consultada desde su teléfono móvil, su tablet, o desde una página desde su casa. He optado por comenzar con desarrollos híbridos (parte en FiveWin, parte php con algún Framework, en mi caso Laravel) con bases de datos MySql. Y la experiencia fue muy buena. Conviven de maravilla, y la inversión de tiempo para aprenderlo no fue tan grande. Y como en este foro, hay mucha información y mucha gente dispuesta a ayudar en la web. Lejos me siento de ser un experto de ninguna de las dos cosas, pero los resultados que he conseguido me han permitido dar una solución un poco más amplia. Y creo que como ESTRATEGIA, que es el tema en cuestión, la mejor es la ALIANZA. Aliarnos con personas que están dispuestas a aportar, de la misma manera que nosotros, sus conocimientos en cada tema. Se que no es un tema fácil, pero la práctica me dice que se puede. He tercerizado el montaje de servidores web con gente experta en ese tema, tercerizado el desarrollo de aplicaciones Android, el diseño e imágenes, el marketing digital, etc. Y todos convivimos de manera ordenada. Y todos recibimos la remuneración por nuestros conocimientos y nuestro trabajo. También creo que es importante transmitir a nuestros clientes y usuarios, que un desarrollo de ese estilo tiene su costo. Esa es mi humilde opinión. Un abrazo para todos y larga vida a FiveWin. Google traslator It is a very broad and interesting topic. But as Carles says, it is very hard (if we are independent developers), to assume the cost and the effort to assimilate all that knowledge. I also share with Tim and Mr. Rao, that there are users who prefer (for their practicality) the use of desktop systems for processing and loading large volumes of data (for the convenience of solving several processes on a screen). But from experience, new users require that certain information can be consulted from your mobile phone, your tablet, or from a page from your home. I have chosen to start with hybrid developments (part in FiveWin, part php with some Framework, in my case Laravel) with MySql databases. And the experience was very good. They have a great time, and the investment of time to learn it was not so great. And as in this forum, there is a lot of information and many people willing to help on the web. I am far from being an expert of either, but the results I have achieved have allowed me to give a slightly broader solution. And I think that as a STRATEGY, which is the issue in question, the best is the ALLIANCE. Partner with people who are willing to contribute, in the same way that we, their knowledge in each subject. I know it's not an easy subject, but practice tells me that you can. I have outsourced the assembly of web servers with experts in this area, outsourcing the development of Android applications, design and images, digital marketing, etc. And we all live in an orderly manner. And we all receive compensation for our knowledge and our work. I also believe that it is important to convey to our clients and users that a development of that style has its cost. That is my humble opinion. A hug for all and long life to FiveWin.
strategies
Cesar may I ask if you have looked at TWeb. I used php with the Symfony framework for a program. But then I decided that until I get comfortable with PHP to use pure PHP only. Now that I'm getting comfortable with PHP I see that I have a need for a framework. For me I think TWeb is the best choice. Best regards, Otto
strategies
Otto. Si, he mirado Tweb y me parece una excelente herramienta, que por falta de tiempo no he podido mirar mas a fondo. Creo que tiene algo que es sumamente atractivo: la similitud con la forma de trabajar que estamos acostumbrados los que desarrollamos aplicaciones de escritorio. Vi esa flexibilidad en Sencha. (<!-- m --><a class="postlink" href="http://www.sencha.com">http://www.sencha.com</a><!-- m -->) en su formato de desarrollo web tipo desktop (<!-- m --><a class="postlink" href="https://examples.sencha.com/extjs/6.7.0/examples/classic/desktop/">https://examples.sencha.com/extjs/6.7.0 ... c/desktop/</a><!-- m -->). Solo vi el resultado, no he visto la forma de trabajo que se requiere para hacerlo funcionar. Creo que esa es mi idea de trabajo en web. Y sin dudas TWeb tiene un gran parecido a lo que imagino. Google traslator Otto Yes, I have looked at Tweb and it seems to me an excellent tool, that for lack of time I have not been able to look more thoroughly. I think it has something that is extremely attractive: the similarity with the way of working that we are accustomed those who develop desktop applications. I saw that flexibility in Sencha. (<!-- m --><a class="postlink" href="http://www.sencha.com">http://www.sencha.com</a><!-- m -->) in its desktop-like web development format ([url:586e2ei5]https&#58;//examples&#46;sencha&#46;com/extjs/6&#46;7&#46;0/examples/classic/desktop[/url:586e2ei5]/). I only saw the result, I have not seen the way of work that is required to make it work. I think that's my idea of ??working on the web. And without a doubt, TWeb bears a strong resemblance to what I imagine.
strategies
Estimados, Quiero comentar la experiencia que tuve hace poco con un proyecto web, el cual pude cumplir satisfactoriamente gracias a la herramienta de nuestro colega Lailton: Fiveweb. Tengo conocimientos precarios de PHP y creí que con un curso completo de Sistemas Web podría desarrollar el proyecto, pero al primer error de mi sistema quedé atascado, también intenté hacerlo con la excelente herramienta Tweb del amigo Carles, pero lamentablemente debido al tiempo apretado y mis deficientes conocimientos en MVC y PHP quedé impotente. Pero si pude desarrollarlo con la herramienta Fiveweb y la ayuda siempre pronta de Lailton. Espero mi experiencia sea de utilidad a alguien.
strategies
To All Yes .. everyone seems to want a web application and then wish they still had the ease and simplicity of a desktop app. In my case I see so many large companies and state and local governments moving towards Web apps and spending millions and years of development with nothing to show for it : [quote:3jnt4q54] A THREE-DECADE DEBACLE … Familiar with the debacle involving the S.C. Department of Social Services (SCDSS) child support enforcement database? If you are a Palmetto State taxpayer, you should be. We last reported on this multi-million dollar disaster back in November … and our sources at the agency say things haven’t gotten any better since then. To recap: In 1988 the federal government mandated the creation of a centralized computer system to monitor child support payments – and gave states ten years to set up their networks. Not only did South Carolina fail to get its system up and running on time, but by 2006 it was the only state in the nation still lacking such a database – an ongoing failure which has resulted in the accumulation of tens of millions of dollars in fines. This failure has cost the state $145 million in project costs – and $135 million in fines. With nothing to show for it … and no end in sight. This failure is sad … but not surprising. SCDSS has been an unmitigated disaster Haley took office in 2011 – most notably as it relates to multiple instances in which vulnerable children were repeatedly placed in abusive homes. But the agency’s failure is much bigger and broader than that – even after Haley was forced to fire her first “rock star” agency director. Earlier this year, a group of technology providers offered to fix the agency’s botched child support system – asking only a fraction of the annual fines assessed by the federal government. In other words, getting paid was dependent on them fixing the program. SCDSS officials declined the offer. Why? Let’s delve into that … According to reporter Tim Smith of The Greenville News, South Carolina taxpayers can expect to shell out another $63 million in federal fines before the new system is operational in October of 2018. Program costs for the new system are expected to top $140 million – with estimated annual maintenance costs of $18 million (compared to $1 million annually for the modern database the agency rejected). In other words, having already flushed $280 million down the drain … for nothing … taxpayers are now on the hook for another $200 million (and nearly $20 million annually). Add it all up and we’re talking about a half-billion dollar debacle … [/quote:3jnt4q54] and what about security .. remember the Equifax data hack that penetrated their web portal .. [quote:3jnt4q54] As the security community processes the news and scrutinizes Equifax's cybersecurity posture, numerous doubts have surfaced about the organization's competence as a data steward. The company took six weeks to notify the public after finding out about the breach. Even then, the site that Equifax set up in response to address questions and offer free credit monitoring was itself riddled with vulnerabilities. And as security journalist Brian Krebs first reported, a web portal for handling credit-report disputes from customers in Argentina used the embarrassingly inadequate credentials of "admin/admin." Equifax took the platform down on Tuesday. But observers say the ongoing discoveries increasingly paint a picture of negligence—especially in Equifax's failure to protect itself against a known flaw with a ready fix. A 'Relatively Easy' Hack The vulnerability that attackers exploited to access Equifax's system was in the Apache Struts web-application software, a widely used enterprise platform..... [/quote:3jnt4q54] [quote:3jnt4q54] Experian Forecasts the Top 5 Data Breach Predictions for 2019 4. Cloud Breach It's a matter of when, not if, a top cloud vendor breach will occur, compromising the sensitive information of major companies. The only question is how long it will take hackers to go to the cloud, affecting the world's largest companies and potentially billions of pieces of data. [/quote:3jnt4q54] I have stayed away from developing web applications .. I prefer corporate client-server SQL windows applications that run behind a company's firewall .. yet, when you talk to most CIO's .. web apps are where they spend the most time a development dollars .. All I can do is shake my head .. as the above Cloud breach prediction .. not a matter of when .. it will happen .. and when do we learn from the principal of insanity .. [img:3jnt4q54]http&#58;//i65&#46;tinypic&#46;com/2d4480&#46;jpg[/img:3jnt4q54] If you haven't noticed .. there is a BIG push for new security concerns against the big tech companies .. Google, Facebook and the discussions of bringing a GDPR ( like ) legislation to the United States .. How much would or should have Equifax been fined in the EU for their massive data breach .. 10 million , 20 million or more .. if GDPR becomes the global standard .. do you think people will continue to create vulnerable web applications ? If you put your data out on the web .. they will come! Rick Lipkin
strategies
Hi Rick ! [quote="Rick Lipkin":ir8vrhfh]Yes .. everyone seems to want a web application and then wish they still had the ease and simplicity of a desktop app. In my case I see so many large companies and state and local governments moving towards Web apps and spending millions and years of development with nothing to show for it :[/quote:ir8vrhfh] But you will agree with me that nowadays many businesses or companies need the capacity of the web so that their clients, users, employees ... can interact in some way. It's not true ? [quote="Rick Lipkin":ir8vrhfh]and what about security .. remember the Equifax data hack that penetrated their web portal .. [/quote:ir8vrhfh] This is true and it is a big problem: security. Another day we will talk about this topic ... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> [quote="Rick Lipkin":ir8vrhfh]I have stayed away from developing web applications .. I prefer corporate client-server SQL windows applications that run behind a company's firewall .. yet, when you talk to most CIO's .. web apps are where they spend the most time a development dollars .. [/quote:ir8vrhfh] The corporate applications are the ones that we control perfectly. But this thread is for fwh programmers who are somehow forced to jump to the web for any reason. Search strategies ... What is the best? What is the best way to adapt? Obviously we can always resist temptations such as jumping to the web Data protection is a very important issue but it should not serve as an excuse to continue investigating all together and try to find the best solution so that we are able to find the best strategy to jump to the web In short I would say ... To the programmers who want to make the jump to the web, don't be afraid. It is difficult, but we have many years of experience in programming to try to find solutions with our knowledge and create our new web portals that interface with our company data (if not all the data, obviously one part). It's hard, we don't have to fool ourselves, but it's possible for FWH programmers. We only try to find the best method to find solutions to this important issue. There are many trends, preferences, styles, languages, systems, solutions, and this topic is very exciting.
strategies
For what's worth; by changing the RDD to ADS (NTX, CDX or ADT), you don't have to change much your current native app and you get to write PHP, Ruby, Phyton web apps that read/write the vary same data. You can change the source db and start using data that is stored on a server somewhere on a remote area of the world and not have to change your native app or web app either. It is true that you can do the same with MySQL, but you would have to re-write a lot of current native app and learn a lot more. By simply switching to ADS RDD you have already begun on the way to learn RDB with SQL white keeping ISAM that you already know and love so much. Yes, there is still a learning curve. When I begun learning SQL back in 2004 with ADS, I kept most of my ISAM, as in: [code=fw:8fvdy5ex]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">While</span> !<span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   ...<br />   <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> Skip<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />End<br /> </div>[/code:8fvdy5ex] The more and more SQL I learned and realize how much faster it executes, I slowly began to replace it for: [code=fw:8fvdy5ex]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> <fieldlist> <span style="color: #0000ff;">FROM</span> customers <span style="color: #0000ff;">WHERE</span> <condition><br /> </div>[/code:8fvdy5ex] When I needed some access via Web, I began learning PHP. My PHP web-apps work on the very same dbf data as my native apps. In short; I can see the benefit of having native apps running from a remote database stored somewhere on the cloud and also share that same data with PHP/Ruby/Phyton web apps. There is no getting around the fact that we all need to learn some Web dev environment that is also capable of reading our current dbf data for most situations. I like ADS only because I still get to keep ISAM and the learning curve is less vertical. Reinaldo.
strategies
Hello friends, some of the discussion reminds me the days when we switched from DOS to WINDOWS. The easiest way to start with web programming seems to me to be PHP. But as soon as the application grows one would like to have a framework. I looked at several. But for me it is best to use TWeb with common syntax to me. You get structured programs as you are used to. I think everyone knows that you can use TWeb and PHP in parallel. So you can just add finished PHP parts. TWeb is PHP. Kind regards Otto
strategies
Hey Otto; can you show some code or how to use TWeb with PHP? Is there a link? I'm sorry I don't know about TWeb. I have been using PHP with ADS. I feel comfortable with PHP, if TWeb can make PHP easier/more useful, then I will want to learn more about TWeb. Thank you, Reinaldo.
strategies
Dear Reinaldo, please see: [img:cjziy31l]https&#58;//mybergland&#46;com/FWForum/TWEB&#46;gif[/img:cjziy31l] Best regards, Otto
strategies
Hi Otto , Below are the two WebGUI Framework [url:2x0q3i9x]http&#58;//www&#46;unigui&#46;com/[/url:2x0q3i9x] This is Delphi Wrappers on Sencha GUI framework. If FWH has also same kind wrappers to Sencha or Other HTML GUI, probably [url:2x0q3i9x]https&#58;//dhtmlx&#46;com/[/url:2x0q3i9x] that would be great. [url:2x0q3i9x]https&#58;//vaadin&#46;com/[/url:2x0q3i9x] This is Java Based Framework But this generate HTML pages at runtime. Thanks Shridhar
strategies
Please see: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=35444">viewtopic.php?f=6&t=35444</a><!-- l --> I bought a copy of dhtmlx and installed it on my server. [url:kvnau204]https&#58;//winhotel&#46;space/planner/index&#46;html[/url:kvnau204] But at the end I choosed another program and bougth that component. I use this component from TWeb. Best regards, Otto [img:kvnau204]https&#58;//mybergland&#46;com/FWForum/Planner&#46;jpg[/img:kvnau204]
strategies
I've been working on a WebApp using pretty much standard harbour code using Lailtons FiveWeb. It's been working well for me. I can use DBF's, ADT, SQL and works with ADS as well. One of the nice things was that it did not take me long before I had a nice working app. Any issues I've come across (ie: not knowing how to do some things) are answered quickly by Lailton. Lots of sample files are also included with his FiveWeb. It is defiantly worth looking into. I will try and post some screen shots when I have a bit more time.
strategies
[quote="Otto":2mzmfb51] some of the discussion reminds me the days when we switched from DOS to WINDOWS. [/quote:2mzmfb51] Yes! that's exactly what i was thinking after reading this thread. We had lots of DOS code and several pseudo-magicals tools appeared to "show us" the way to Windows, with promises of turning our DOS screens into full windows. Even new compilers appeard like xBase++. Other programmers thought they could stay in the DOS environment using graphic libraries like the one that came with Clipper itself. And, finally, the only and real solution was to learn how to program for the Windows environment using the right tool, FW. And there was no magic: our old dos programs were way better than out first windows apps. After years, many water passed down the bridge until we had a realiable XBrowse. ¿Do you remember? Now we are in the same situation, we are affraid of the unknow and we have few clues of where things are going to. Fortunately, several years ago I had to learn how to program web apps. There are lots of new stuff lo lean, but it is really amazing. In any case you'll need at least learn some HTML and CSS. Some years ago I'd settled my bet for PHP, but now I think Javascript is the winning horse. KR
strategies
Hello Reinaldo, [quote="reinaldocrespo":y47bmvvg] ... I have been using PHP with ADS. [/quote:y47bmvvg] What version of PHP are you using? The most updated ADS dlsl I've got are for PHP 5.4, what is really old. Do you know if there is a newer version? KR
strategies
Hi, [quote="Carlos Mora":srjdace3]And, finally, the only and real solution was to learn how to program for the Windows environment using the right tool, FW.[/quote:srjdace3] And finally the only and real solution [b:srjdace3]IS[/b:srjdace3] to learn how to program for Web environments using the correct tools, ... [quote="Carlos Mora":srjdace3]...our old dos programs were way better than out first windows apps.[/quote:srjdace3] Our current windows programs were way better than out first web apps. [quote="Carlos Mora":srjdace3]In any case you'll need at least learn some HTML and CSS. Some years ago I'd settled my bet for PHP, but now I think Javascript is the winning horse. [/quote:srjdace3] Uhmmm... I'm agree with you. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
strategies
You got the full picture, Carles! una abraçada
strategies
Hello Jeff, is FiveWeb responsive. Am I right that it is CGI. Best regards, Otto
strategies
Here are a couple of screen shots of my WebApp. The program is built with Harbour/FiveWeb which creates an EXE that is run under apache (I believe you can use IIS as well) Login Screen: [img:mzd2nv0z]http&#58;//can-soft&#46;net/temp/login&#46;jpg[/img:mzd2nv0z] Search Screen: [img:mzd2nv0z]http&#58;//can-soft&#46;net/temp/search&#46;jpg[/img:mzd2nv0z] View/Edit Screen (on the right side is a PDF): [img:mzd2nv0z]http&#58;//can-soft&#46;net/temp/edit&#46;jpg[/img:mzd2nv0z]
streching timage control in dialog
Hi. I have a dialog from resources with a single control in it. It is an timage control: DEFINE DIALOG oDlg NAME "ViewImage" TITLE "View scanned image dialog window" of oOwner oImage := tImage():Redefine( 101,, ImgRoot + oLbx:aArrayData[ oLbx:nArrayAt, 5 ], oDlg,,, .t. ) The dialog is resizeable. I'd like for the timage control to resize when ever the container-dialog is resized. Any ideas? thank you, Reinaldo Crespo-Bazán
streching timage control in dialog
I found this to work: odlg:bResized := { ||ResizeImage( odlg, oImage ) } ... Static function ResizeImage( odlg, oImage ) oImage:Move( 0,0, odlg:nWidth(), odlg:nHeight() ) oImage:refresh() return nil
streching timage control in dialog
Reinaldo, I'm curious, how do you make a dialog resizable? James
streching timage control in dialog
I suppose that the properties defined on the resource editor. On this particular dialog I have the following checked: system menu thick frame maximize box modal frame visible
streching timage control in dialog
and window type popup.
strikethrough font
Hi, There is a SAY control. I need to change the font of this control to crossed out. How can I do this ?
strikethrough font
[code=fw:2oyv55ur]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oForm, oFont, oSay, oGet, nValue := <span style="color: #000000;">0</span>, oBot2<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-11.5</span> STRIKEOUT<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oForm <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Letra Tachada"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">05</span>,<span style="color: #000000;">15</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">13</span>,<span style="color: #000000;">70</span><br />@ <span style="color: #000000;">05</span>,<span style="color: #000000;">05</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Texto tachado:"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp;<span style="color: #0000ff;">OF</span> oForm<br />@ <span style="color: #000000;">05</span>,<span style="color: #000000;">70</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> nValue <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9999"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oForm <span style="color: #0000ff;">RIGHT</span> <br />@ <span style="color: #000000;">20</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">BUTTON</span> oBot2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Boton"</span> <span style="color: #0000ff;">OF</span> oForm <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">ACTION</span> oForm:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">PIXEL</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oForm <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oGet:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span></div>[/code:2oyv55ur]
strikethrough font
Thanks to CMSOFT, but I was asking a little bit about the wrong thing. I am interested in changing the font of an already existing SAY during operation, not during installation (). That's exactly what I can't do <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
strikethrough font
When you want to srikeout, [code=fw:gwscvvmd]<div class="fw" id="{CB}" style="font-family: monospace;">oSay:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oSay:<span style="color: #000000;">oFont</span>:<span style="color: #000000;">StrikeOut</span><span style="color: #000000;">&#40;</span> .t. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:gwscvvmd]
string ADO y archivo ini
Buenos dias, Alguien tendra un ejemplo de como crear un string de conexion via ADO desde un archivo .ini ? Es decir, llenar los valores del string desde el .ini Saludos
string ADO y archivo ini
A ver si esto te puede ayudar [code=fw:18ksalpa]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> DriversEntries<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> aDnss &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">Local</span> cLin &nbsp; &nbsp;:= <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">Local</span> cLin1 &nbsp; := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">Local</span> oFile<br /><span style="color: #00C800;">Local</span> nPos &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> lSw &nbsp; &nbsp; := .F.<br /><span style="color: #00C800;">Local</span> cFile1 &nbsp;:= <span style="color: #ff0000;">"C:<span style="color: #000000;">\W</span>INDOWS<span style="color: #000000;">\O</span>DBC.INI"</span><br /><span style="color: #00C800;">Local</span> cFile2 &nbsp;:= <span style="color: #ff0000;">"C:<span style="color: #000000;">\W</span>INDOWS<span style="color: #000000;">\O</span>DBCINST.INI"</span><br /><br /><span style="color: #00C800;">if</span> file<span style="color: #000000;">&#40;</span> cFile2 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFile &nbsp;:= TTxtFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cFile2 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFile:<span style="color: #000000;">nMaxLineLength</span> := <span style="color: #000000;">256</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Do</span> <span style="color: #00C800;">while</span> !oFile:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cLin1 &nbsp;:= <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; nPos &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; cLin &nbsp; := oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span> cLin <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !lSw<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> Upper<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"[ODBC 32 bit Drivers]"</span> <span style="color: #000000;">&#41;</span>, Upper<span style="color: #000000;">&#40;</span> cLin <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSw &nbsp; &nbsp; := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"["</span>, cLin <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nPos := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> Upper<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"instal"</span> <span style="color: #000000;">&#41;</span>, Upper<span style="color: #000000;">&#40;</span> cLin <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span> nPos <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cLin1 &nbsp;:= <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cLin, nPos - <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos := RAt<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"bit"</span>, &nbsp;cLin1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span> nPos <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cLin1 &nbsp;:= <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cLin1, nPos - <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aDnss, Upper<span style="color: #000000;">&#40;</span> cLin1 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSw := .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; oFile:<span style="color: #000000;">Skipper</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Enddo</span><br />&nbsp; &nbsp;oFile:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFile := <span style="color: #00C800;">Nil</span><br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Fichero no encontrado"</span>, cFile2 <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> file<span style="color: #000000;">&#40;</span> cFile1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFile &nbsp;:= TTxtFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cFile1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFile:<span style="color: #000000;">nMaxLineLength</span> := <span style="color: #000000;">256</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Do</span> <span style="color: #00C800;">while</span> !oFile:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cLin1 &nbsp;:= <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; nPos &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; cLin &nbsp; := oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cLin &nbsp; := RTrim<span style="color: #000000;">&#40;</span> cLin <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cLin &nbsp; := LTrim<span style="color: #000000;">&#40;</span> cLin <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span> cLin <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !lSw<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> Upper<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"[ODBC 32 bit Data Sources]"</span> <span style="color: #000000;">&#41;</span>, Upper<span style="color: #000000;">&#40;</span>cLin<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSw &nbsp; &nbsp; := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"["</span>, cLin <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nPos := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> Upper<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"="</span> <span style="color: #000000;">&#41;</span>, Upper<span style="color: #000000;">&#40;</span> cLin <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span> nPos <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cLin1 &nbsp;:= <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span> cLin, <span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cLin <span style="color: #000000;">&#41;</span> - nPos <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos := RAt<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"bit"</span>, &nbsp;cLin1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span> nPos <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cLin1 &nbsp;:= <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cLin1, nPos - <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span> Ascan<span style="color: #000000;">&#40;</span> aDnss, Upper<span style="color: #000000;">&#40;</span> cLin1 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aDnss, Upper<span style="color: #000000;">&#40;</span> cLin1 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSw := .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; oFile:<span style="color: #000000;">Skipper</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Enddo</span><br />&nbsp; &nbsp;oFile:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFile := <span style="color: #00C800;">Nil</span><br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Fichero no encontrado"</span>, cFile1 <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">Return</span> aDnss<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:18ksalpa]
string ADO y archivo ini
Hola, No lo veo claro aun...tal vez quise decir armar el string desde los valores del archivo ini.
string ADO y archivo ini
Hola Prueba, haciendo un XBrowse( DriversEntries() ) ( array que devuelve )
string ADO y archivo ini
Compuin: Va como lo hago yo. [code=fw:2q74xa2i]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    LeeIni<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>                    <span style="color: #B900B9;">// Lee parametros</span><br /><br />    <span style="color: #00C800;">IF</span> ! Conecta<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        QUIT<br />    <span style="color: #00C800;">ENDIF</span><br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> LeeIni<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oIni<br />INI oIni FILE <span style="color: #ff0000;">".<span style="color: #000000;">\S</span>apWin.Ini"</span><br />    <span style="color: #0000ff;">GET</span> oApp:<span style="color: #000000;">cDsn</span>               SECTION <span style="color: #ff0000;">"MYSQL"</span> ENTRY <span style="color: #ff0000;">"Dsn"</span>         <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">"SapWin"</span><br />    <span style="color: #0000ff;">GET</span> oApp:<span style="color: #000000;">cDescription</span>   SECTION <span style="color: #ff0000;">"MYSQL"</span> ENTRY <span style="color: #ff0000;">"Description"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">"Sistema para Administración de Proyectos"</span><br />    <span style="color: #0000ff;">GET</span> oApp:<span style="color: #000000;">cServer</span>            SECTION <span style="color: #ff0000;">"MYSQL"</span> ENTRY <span style="color: #ff0000;">"Server"</span>      <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">"localhost"</span><br />    <span style="color: #0000ff;">GET</span> oApp:<span style="color: #000000;">cDataBase</span>      SECTION <span style="color: #ff0000;">"MYSQL"</span> ENTRY <span style="color: #ff0000;">"DataBase"</span>        <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">""</span><br />    <span style="color: #0000ff;">GET</span> oApp:<span style="color: #000000;">cUser</span>              SECTION <span style="color: #ff0000;">"MYSQL"</span> ENTRY <span style="color: #ff0000;">"User"</span>            <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">"root"</span><br />    <span style="color: #0000ff;">GET</span> oApp:<span style="color: #000000;">cPassWord</span>      SECTION <span style="color: #ff0000;">"MYSQL"</span> ENTRY <span style="color: #ff0000;">"PassWord"</span>        <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">"91502127"</span><br />    <span style="color: #0000ff;">GET</span> oApp:<span style="color: #000000;">cPort</span>              SECTION <span style="color: #ff0000;">"MYSQL"</span> ENTRY <span style="color: #ff0000;">"Port"</span>            <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">"3306"</span><br />    <span style="color: #0000ff;">GET</span> oApp:<span style="color: #000000;">cDriveName</span>     SECTION <span style="color: #ff0000;">"MYSQL"</span> ENTRY <span style="color: #ff0000;">"DriveName"</span>   <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">"Driver={MySQL ODBC 3.51 Driver}"</span><br />    <span style="color: #0000ff;">GET</span> oApp:<span style="color: #000000;">cStmt</span>              SECTION <span style="color: #ff0000;">"MYSQL"</span> ENTRY <span style="color: #ff0000;">"Statement"</span>   <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">""</span><br />ENDINI<br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2q74xa2i] Saludos
string ADO y archivo ini
Gracias a todos
string ADO y archivo ini
Gracias, Lo probare
string ADO y archivo ini
[quote="Compuin":3jsx5e3x]Gracias a todos[/quote:3jsx5e3x] Creo que lo que quiere Ing. es ver el contenido del archivo .ini como esta estructurado segun eso supongo. Saludos
string ADO y archivo ini
Basicamente colocar los parametros de conexion en el .ini y llenar el string desde el mismo. Eso es lo que necesito
string ADO y archivo ini
[quote="Compuin":3gwlwuon]Basicamente colocar los parametros de conexion en el .ini y llenar el string desde el mismo. Eso es lo que necesito[/quote:3gwlwuon] ; Archivo para usar parametros de conexión [mysql] host=127.0.0.1 user=root psw=654321 flags=0 port=3307 dbname=PROVCLIE A ver si te ayuda Ing. Saludos Ing.
string ADO y archivo ini
Ok algun ejemplo como capturarlo y llevarlo al string de conextion??
string ADO y archivo ini
[quote="Compuin":2h05emve]Ok algun ejemplo como capturarlo y llevarlo al string de conextion??[/quote:2h05emve] [code=fw:2h05emve]<div class="fw" id="{CB}" style="font-family: monospace;">MsgRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Espere, generando conexión al servidor..."</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Información MySql"</span>,<span style="color: #000000;">&#123;</span>|| Conectar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> lExit<br />&nbsp; &nbsp; &nbsp;*?<span style="color: #ff0000;">"No hubo conexión con el servidor"</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;CrearTablas<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:2h05emve] [code=fw:2h05emve]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> conectar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// CONECTANDO CON EL SERVIDOR</span><br />&nbsp;*<span style="color: #00C800;">LOCAL</span> hIni &nbsp; &nbsp; &nbsp;:= HB_ReadIni<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">".<span style="color: #000000;">\c</span>onexion.ini"</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// PARA LEER ARCHIVOS .ini</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> hIni &nbsp; &nbsp; &nbsp;:= HB_ReadIni<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">".<span style="color: #000000;">\c</span>onnect.ini"</span> <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> cServer &nbsp; := hIni<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"host"</span><span style="color: #000000;">&#93;</span> ,; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// NOMBRE DEL HOST (localhost)</span><br />&nbsp; &nbsp; &nbsp; &nbsp;cUser &nbsp; &nbsp; := hIni<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"user"</span><span style="color: #000000;">&#93;</span> ,; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// NOMBRE DEL USUARIO (root)</span><br />&nbsp; &nbsp; &nbsp; &nbsp;cPassword := hIni<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"psw"</span><span style="color: #000000;">&#93;</span> ,; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CLAVE DEL USUARIO &nbsp;(vacio por ahora)</span><br />&nbsp; &nbsp; &nbsp; &nbsp;nPort &nbsp; &nbsp; := val<span style="color: #000000;">&#40;</span>hIni<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"port"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> ,; <span style="color: #B900B9;">// PUERTO DE CONEXION (3306)</span><br />&nbsp; &nbsp; &nbsp; &nbsp;cDBName &nbsp; := hIni<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"dbname"</span><span style="color: #000000;">&#93;</span> ,; &nbsp; &nbsp;<span style="color: #B900B9;">// NOMBRE DE LA BASE DE DATOS (sisprocom)</span><br />&nbsp; &nbsp; &nbsp; &nbsp;nFlags &nbsp; &nbsp;:= val<span style="color: #000000;">&#40;</span>hIni<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"flags"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// NUMERO DE FLAG (0)</span><br /><br />&nbsp;<span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; oServer = TDolphinSrv<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cServer, cUser, cPassword, nPort, nFlags <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; *oServer = TDolphinSrv<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cServer, cUser, cPassword, nPort, nFlags, cDBName <span style="color: #000000;">&#41;</span><br />&nbsp;CATCH oError<br />&nbsp; &nbsp; MSGALERT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ERROR FATAL: No hubo Conexión con el SERVIDOR"</span> + CRLF + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oError:<span style="color: #000000;">Description</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">" SISINGE - MYSQL"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; lExit := .T.<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br />&nbsp;END<br /><br />&nbsp;<span style="color: #B900B9;">// VERIFICO SI EXISTE DATABASE, SINO, LA CREO</span><br />&nbsp;<span style="color: #00C800;">IF</span> oServer:<span style="color: #000000;">DBCreate</span><span style="color: #000000;">&#40;</span> cDBName <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; * <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Conectado Correctamente a DataBase: "</span> + cDBName, <span style="color: #ff0000;">" SISINGE - ATENCIÓN"</span> <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;oServer:<span style="color: #000000;">SelectDB</span><span style="color: #000000;">&#40;</span> cDBName <span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #B900B9;">// MENSAJE CUANDO CONEXION ES CORRECTA...//la window lo oculta</span><br />&nbsp;* &nbsp;<span style="color: #00C800;">IF</span> !oServer:<span style="color: #000000;">lError</span> <span style="color: #B900B9;">// SI NO HAY ERROR...</span><br />&nbsp;* &nbsp; &nbsp; oDatos:<span style="color: #000000;">oConex</span> = oServer <span style="color: #B900B9;">// ASIGNO oSERVER A oCONEX PARA MANEJARLO EN TODO EL SISTEMA</span><br />&nbsp;* &nbsp;<span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span></div>[/code:2h05emve] Este codigo lo tome una parte del tdolphin y la otra por la ayuda de unos colegas,no recuerdo quien,espero te sirva y te ayude o haya otros que puedan aportar mejor su ejemplo . Saludos
string connection MS Access
wthat is string connection Ms Acces to mdb file with password best regard kajot
string connection MS Access
kajot Here is a sample connection string for Ms Access with a password... see the variable xString. Rick Lipkin [code=fw:3a7fhw3n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">//-- get location of .exe assuming the .mdb is in the same folder //</span><br /><br />cFILE := GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />aDIR  := DIRECTORY<span style="color: #000000;">&#40;</span> cFILE <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// where .exe started from is default directory //</span><br /><br />nSTART := RAT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<span style="color: #000000;">\"</span>, cFILE )<br />cDEFA  := SUBSTR(cFILE,1,nSTART-1)<br /><br />xPROVIDER := "</span>Microsoft.Jet.OLEDB<span style="color: #000000;">.4</span><span style="color: #000000;">.0</span><span style="color: #ff0000;">"<br />xSOURCE   := cDEFA+"</span>\YourTable.mdb<span style="color: #ff0000;">"<br />xPASSWORD := "</span>xxxxxx<span style="color: #ff0000;">"<br /><br />xSTRING := 'Provider='+xPROVIDER+';Data Source='+xSOURCE+';Jet OLEDB:Database Password='+xPASSWORD<br /> </span></div>[/code:3a7fhw3n]
string connection MS Access
From FWH 13.06 onwards we can open access (mdb or accdb) files with password using: oCn := FW_OpenAdoConnection( <cmdbfilename>, <cpassword> ) The function internally builds the proper connection string.
string connection MS Access
Mr. Nages, In source\function\adofuncions.prg this is what I have: function Fw_OpenAdoConnection( cConnStr, lShowError ) Nothing about password.
string connection MS Access
Mr Lucas Regret my inaccuracy in the syntax. The correct syntax is: oCn := FW_OpenAdoConnection( "<cmdbfilename>,<cpassword>" ) Example: Create a password protected mdb file with: FW_CreateMDB( "c:\mydata\tutor05.mdb", "mypassword" ) and open it with oCn := FW_OpenAdoConnection( "c:\mydata\tutor05.mdb,mypassword" ) OR oCn := FW_OpenAdoConnection( { "c:\mydata\tutor05.mdb", "mypassword" } )
string connection MS Access
thanks for answer but if I use cPath := cFilePath( ExeName() ) xSOURCE := cPATH+"waga.mdb" xPASSWORD := "123456" oCon := FW_OpenAdoConnection( xSOURCE,xPASSWORD) cSQL:="select idklienta, nazwa, adres, nip from Klienci" oRes := FW_OpenRecordSet( oCon, cSQL ) the function FW_OpenRecordSet( oCon, cSQL ) retrun error openning table Klienci best regards kajot
string connection MS Access
Please use: oCon := FW_OpenAdoConnection( { xSOURCE, xPASSWORD } ) or oCon := FW_OpenAdoConnection( xSOURCE + "," + xPASSWORD)
string connection MS Access
if I used function oCon := FW_OpenAdoConnection( xSOURCE + "," + xPASSWORD) the database opened good, but the function FW_OpenRecordSet can't open the table cSQL:="select idklienta, nazwa, adres, nip from Klienci" oRes := FW_OpenRecordSet( oCon, cSQL ) best regards kajot
string connection MS Access
It is working here for me. Example code: [code=fw:179f67oj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> TestPW<br /><br />   <span style="color: #00C800;">local</span> oCn, oRs<br />   <span style="color: #00C800;">local</span> cmdb := <span style="color: #ff0000;">"tutorpw.mdb"</span><br />   <span style="color: #00C800;">local</span> pwd  := <span style="color: #ff0000;">"12345"</span><br /><br />   <span style="color: #00C800;">if</span> ! File<span style="color: #000000;">&#40;</span> cmdb <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> ! FW_CreateMDB<span style="color: #000000;">&#40;</span> cmdb, pwd <span style="color: #000000;">&#41;</span><br />         ? <span style="color: #ff0000;">"MDB Create Fail"</span><br />         <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br /><br />   oCn   := FW_OpenAdoConnection<span style="color: #000000;">&#40;</span> cmdb + <span style="color: #ff0000;">","</span>  pwd <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">if</span> oCn == <span style="color: #00C800;">nil</span><br />      ? <span style="color: #ff0000;">"Connect fail"</span><br />      <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />   <span style="color: #00C800;">endif</span><br /><br />   FW_AdoImportFromDBF<span style="color: #000000;">&#40;</span> oCn,  <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\C</span>USTOMER.DBF"</span> <span style="color: #000000;">&#41;</span><br /><br />   xbrowser fw_adotables<span style="color: #000000;">&#40;</span> oCn <span style="color: #000000;">&#41;</span><br /><br />   oRs := FW_OpenRecordSet<span style="color: #000000;">&#40;</span> oCn, <span style="color: #ff0000;">"CUSTOMER"</span> <span style="color: #000000;">&#41;</span><br />   ? oRs:<span style="color: #000000;">State</span><br /><br />   xbrowser oRs<br />   oRs:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oCn:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:179f67oj]
string connection MS Access
thanks a lot I can't check up our program, because I have FWH v. 12.06 so I got many error xLINK: error: Unresolved external symbol '_HB_FUN_FW_CREATEMDB referenced from (t.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_FW_ADOIMPORTFROMDBF referenced from (t.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_FW_ADOTABLES referenced from (t.obj)'. best regards kajot
string connection MS Access
Creation and Opening of MDB files with password is available from 13.06 only.
string connection MS Access
Dear All, I am unable to get connection using oCn := FW_OpenAdoConnection( cmdb + "," + pwd ) when file extension of Access file is changed from .mdb to .bds I need help how to connect
string connection MS Access
[quote="bpd2000":9yf3rs09]Dear All, I am unable to get connection using oCn := FW_OpenAdoConnection( cmdb + "," + pwd ) when file extension of Access file is changed from .mdb to .bds I need help how to connect[/quote:9yf3rs09] You can try to modify the function FW_AdoConnectionString as well [code=fw:9yf3rs09]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">function</span> FW_AdoConnectionString<span style="color: #000000;">&#40;</span> cConnSpec, nDb <span style="color: #000000;">&#41;</span><br /><br />.../...<br /><br />&nbsp; &nbsp; &nbsp; elseif cExt $ <span style="color: #ff0000;">"mdb,accdb,bds"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cRDBMS &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"MSACCESS"</span><br /><br />.../...<br /><br />&nbsp;</div>[/code:9yf3rs09]
string connection MS Access
Thank you for reply I tested but not succesful Error as : Error description: Error BASE/1109 Argument error: $
string connection MS Access
After changes to elseif cExt $ "mdb,accdb,bds" cRDBMS := "MSACCESS" ? cExt it shows as as bds but error comes at line no. 108 of adofuncs.prg i.e. if '<?>' $ cConnStr .and. nDB > 0 You may test after change of extension of .mdb file in the example give in this thread by Mr. Rao
string connection MS Access
Also change in function FW_RDBMSName( oCn ) [code=fw:1gihc3mn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />.../...<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #ff0000;">".mdb"</span> $ c .or. <span style="color: #ff0000;">".accdb"</span> &nbsp;.or. <span style="color: #ff0000;">"bds"</span> $ c<br /><br />.../...<br /><br />&nbsp;</div>[/code:1gihc3mn]
string connection MS Access
[quote="bpd2000":1yg29hvf]Thank you for reply I tested but not succesful Error as : Error description: Error BASE/1109 Argument error: $[/quote:1yg29hvf] Put before [code=fw:1yg29hvf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;? cExt<br />&nbsp;</div>[/code:1yg29hvf]