Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info.
SEARCH THE FOXITE.COM VISUAL FOXPRO FORUM ARCHIVES
Please enter one or more search terms:
search (case insensitive):


order by:


sort:
SEARCH RESULT Results 4826 - 4850 of 10383 for Functions. (0.780005 seconds)


RE: How to Split csv by comma delimiter when multi comma existed
Thread ID: 107954 Boudewijn Lutgerink RE: How to Split csv by comma delimiter when multi comma existed Experts > How do I split the following lines by comma into different fields? > ",+08","002431000,+000000000,+000000000,+0000000" "7,0,","801,+000000570,+00003" "1,0,","0,+000847000,+000000000,+000000000,+0000" > ALines() work perfectly, but it can't determine not to split when there is comma inside a double quotation mark " ". > Tried to use getwordcount() and getwordnum(), but the length is different all the time. > Is there a way to around the problem with other functions or this is it? > Regards Tom This'll do? LOCAL laSplittingLines[1] as String, lnNumberOfCommas as Integer

RE: How to Split csv by comma delimiter when multi comma existed
Thread ID: 107954 Tom Ho RE: How to Split csv by comma delimiter when multi comma existed Experts > How do I split the following lines by comma into different fields? > ",+08","002431000,+000000000,+000000000,+0000000" "7,0,","801,+000000570,+00003" "1,0,","0,+000847000,+000000000,+000000000,+0000" > ALines() work perfectly, but it can't determine not to split when there is comma inside a double quotation mark " ". > Tried to use getwordcount() and getwordnum(), but the length is different all the time. > Is there a way to around the problem with other functions or this is it? > Regards Tom > This'll do? > LOCAL laSplittingLines[1] as String, lnNumberOfCommas as Integer, lni as Integer

RE: how to stack dump for on error ??
Thread ID: 265793 Samir H. RE: how to stack dump for on error ?? Dear All, > Our programs got bugs that appeared in our clients. We try many times, but it work smoothly under our environment. > We use a program call REFOX to encrypt the EXE before we deploy the program to our clients. And the ON ERROR ...LINE()... only return 0. > Is there a way to retrieve the stack, like what debug window do? Two to three levels of the stack are enough. > Thank you very much! > Best Regards, Antony I compile the exe with "Debug Info" checked in the project manager, and in the ON ERROR routine, I use the functions mentioned by the others (Tushar, Bhushan...). When application development is finished, you

RE: how to store a numeric variable in to ch
Thread ID: 334340 Stefan Wuebbe RE: how to store a numeric variable in to ch Dear Friends I want to ask a simple question how a numeric variable store in character variable regards Hi, you can for example use the Transform() function, or Str(). Sometimes BinToC() might do what you want. There are however summary chapters in Help, like "Character Functions" or "Numeric Function" that try to list related stuff altogether, and the "See also" parts in most Help topics are also useful http://msdn.microsoft.com/en-us/library/9fcc3wys%28v=vs.80%29.aspx hth -Stefan

RE: How to strip special characters?
Thread ID: 165684 Ken Murphy RE: How to strip special characters? LOCAL lcMyTextData, lcMyTextFile > lcMyTextFile = GETFILE() && navigate to the text file IF NOT EMPTY(lcMyTextFile) && if the user has seleted a file lcMyTextData = FILETOSTR(lcMyTextFile) && store the contents to a character string lcMyTextData = STRTRAN(lcTextFile, CHR(10), '') && Replace all newline char with nothing in that string ENDIF > Thank you Ken, this appears to work well on small files. But I keep running out of memory on FILETOSTR() when I try to read files that are 600 megs or more... Any tips on that front? > WC More memory :) You may have to use low level functions to bring the data in one line at a time

RE: How to strip special characters?
ENDIF ELSE && couldn't open the output file ENDIF
Low level functions are definately my weakness. The above code works for pretty much every regular character but seems to have problems with special characters

RE: How to strip special characters?
file ENDIF ELSE && couldn't open the output file ENDIF
> Low level functions are definately my weakness. The above code works for pretty much every regular character but seems to have problems with special characters

RE: How to suppress "All Files (*.*)"?
Thread ID: 76667 Barbara Peisch RE: How to suppress "All Files (*.*)"? Colleagues: > Is there any way to suppress the "All Files *.*" option in the File Dialog when called from VFP's GET/PUTFILE() functions? > To see where I am coming from with this, just copy/paste the following into your VFP's command window and hit Enter: WAIT WINDOW JUSTEXT(PUTFILE([File name:], [C:\Documents And Settings\Untitled], [TXT;RTF])) (If you do not have that Docs & Settings dir - substitute it with any other one that's present on your machine.) > When the File dialog is up - select "All Files (*.*)", and click on Save button. > Did it? Saw what I meant? > Bad, isn't it? And it shows like that in VFP

RE: How to suppress "All Files (*.*)"?
Thread ID: 76667 Ilya Rabyy RE: How to suppress "All Files (*.*)"? Colleagues: > Is there any way to suppress the "All Files *.*" option in the File Dialog when called from VFP's GET/PUTFILE() functions? > To see where I am coming from with this, just copy/paste the following into your VFP's command window and hit Enter: WAIT WINDOW JUSTEXT(PUTFILE([File name:], [C:\Documents And Settings\Untitled], [TXT;RTF])) (If you do not have that Docs & Settings dir - substitute it with any other one that's present on your machine.) > When the File dialog is up - select "All Files (*.*)", and click on Save button. > Did it? Saw what I meant? > Bad, isn't it? And it shows like that in VFP 6, 7

RE: How to suppress "All Files (*.*)"?
Thread ID: 76667 Ilya Rabyy RE: How to suppress "All Files (*.*)"? Colleagues: > Is there any way to suppress the "All Files *.*" option in the File Dialog when called from VFP's GET/PUTFILE() functions? > To see where I am coming from with this, just copy/paste the following into your VFP's command window and hit Enter: WAIT WINDOW JUSTEXT(PUTFILE([File name:], [C:\Documents And Settings\Untitled], [TXT;RTF])) (If you do not have that Docs & Settings dir - substitute it with any other one that's present on your machine.) > When the File dialog is up - select "All Files (*.*)", and click on Save button. > Did it? Saw what I meant? > Bad, isn't it? And it shows like that in VFP 6, 7

RE: How to total all prices and count them
your functions all over again. Regards Tushar

RE: how to trigger message alert?
is being arrogant!" > if possible for you, please post the code . > Warm Regards, mk. Hi Mk, I'm willing to share this program but some of my variables, functions are written in Tagalog words. If time will permit me

RE: How to use Dll files in VFP
Thread ID: 203819 Mike Gagnon RE: How to use Dll files in VFP Hi everyone, > I wish if someone can help me on dealing with the dll files > where to place the dll file on the H.D.D. how to register a dll how to know names of the functions in the dll how to pass parameters to dll > > I appreciate your cooperation. > Best regards. If it is not a Foxpro DLL, if it is a regular C dll. 1. Anywhere you want. Providiving when you register it, it won't move from there. 2. Start button -Run, and in there type Regsvr32 "c:\myapp\mydll.dll" 3. There are many DLL Function viewers on the Net. Here is one of them http://www.nirsoft.net/utils/dll_export_viewer.html 4. If you take the Sleep function for example

RE: How to use Dll files in VFP
Thread ID: 203819 Borislav Borissov RE: How to use Dll files in VFP Hi everyone, > I wish if someone can help me on dealing with the dll files > where to place the dll file on the H.D.D. how to register a dll how to know names of the functions in the dll how to pass parameters to dll > > I appreciate your cooperation. > Best regards. This is very difficult question because every DLL is on its own. There are two kinds of DLL, these which export functions... to this location but some of them requires to be copied in windows\system32 folder. You can't register these DLLs wich exports only functions, but for these with COM servers in them you need to run REGSVR32 application that comes

RE: how to use DLL in VFP
Thread ID: 121968 Borislav Borissov RE: how to use DLL in VFP how can i use DLL in VFP ? > i've worked in this manner: you have to declare a method, and then you can use it simply calling it you have to know it's name and it's parameters type > example > Declare Long SCardEstablishContext In WinScard.Dll Integer,Integer,Integer,Integer@ dllCallResponse = SCardEstablishContext(var_1,var_2,var_3,@var_4) > @ is user for the data manipulation by the dll > regards You can't declare Methods, you declare Functions. Borislav Borissov Freedom for Bulgarian Medics in Libya

RE: how to use DLL in VFP
Thread ID: 121968 Terry Thurber RE: how to use DLL in VFP You can't declare Methods, you declare Functions. Borislav - it's good to know you're around. That's a well "studied" response. Thanks

RE: How to use DLL in VFP
Thread ID: 169186 Borislav Borissov RE: How to use DLL in VFP Anybody can explain me how to use DLL file in VFP. > Thanks in advance > Rashid Malik What DLL? Pure API or COM Server? For API DLL you should know ALL (or at least these) functions declarations. Their names (remember DLL function names are case-sensitive) and expected parameters (nomber of them and type) For COM Server: First you should register that DLL with regsvr32 or with your installation application. then you should know their exported interfaces. Here two examples: *** API DLL DECLARE INTEGER Sleep IN WIN32API INTEGER As you see I need to declare the function I will use. First I declare the expected type

RE: How to use DLL in VFP
Thread ID: 169186 Lyrad Bangoy RE: How to use DLL in VFP Anybody can explain me how to use DLL file in VFP. > Thanks in advance > Rashid Malik > What DLL? Pure API or COM Server? For API DLL you should know ALL (or at least these) functions declarations. Their names (remember DLL function names are case-sensitive) and expected parameters (nomber of them and type) > For COM Server: First you should register that DLL with regsvr32 or with your installation application. then you should know their exported interfaces. Here two examples: *** API DLL DECLARE INTEGER Sleep IN WIN32API INTEGER As you see I need to declare the function I will use. First I declare the expected type of what

RE: How to use DLL in VFP
Thread ID: 169186 Christian Tabligan RE: How to use DLL in VFP Anybody can explain me how to use DLL file in VFP. > Thanks in advance > Rashid Malik > What DLL? Pure API or COM Server? For API DLL you should know ALL (or at least these) functions declarations. Their names (remember DLL function names are case-sensitive) and expected parameters (nomber of them and type) > For COM Server: First you should register that DLL with regsvr32 or with your installation application. then you should know their exported interfaces. Here two examples: *** API DLL DECLARE INTEGER Sleep IN WIN32API INTEGER As you see I need to declare the function I will use. First I declare the expected

RE: How to use DLL in VFP
Thread ID: 169186 Patrick McGreevy RE: How to use DLL in VFP > What DLL? Pure API or COM Server? For API DLL you should know ALL (or at least these) functions declarations. Their names (remember DLL function names are case-sensitive) and expected parameters (nomber of them and type) > For COM Server: First you should register that DLL with regsvr32 or with your installation application. then you should know their exported interfaces. Here two examples: *** API DLL DECLARE INTEGER Sleep IN WIN32API INTEGER As you see I need to declare the function I will use. First I declare the expected type of what function returns: *** API DLL DECLARE INTEGER > then I declare

RE: how to use element-attribute-mixed XML schema?
Thread ID: 34273 Jean RE: how to use element-attribute-mixed XML schema? I've read related articles and solved the problem. thanks for your summary as a guidance to understanding limitation of XML functions in VFP7. Jean

RE: how to use form in form
the IN clauses / work-area parameters of many functions and commands in VFP. SET ORDER TO SET FILTER TO You do not need to Set Order To, Set Filter To if you want to set new order/filter right afterwards SET ORDER TO title

RE: how to use form in form
, you may want to restore the previous one afterwards. In addition, you can often avoid "Select alias" lines by using the IN clauses / work-area parameters of many functions and commands in VFP. > > SET ORDER TO SET FILTER

RE: How to use Fucntions from DLL file
Thread ID: 318394 Mike Gagnon RE: How to use Fucntions from DLL file Hi Experts, > > I wanted to know how to use functions of DLL file in vfp. i am new in programming. i want to use some functions of DLL file in my programme . > Thanks & Regards Anil Shinde Each one of them is different. DECLARE Sleep IN Win32API INTEGER nMilliseconds * Pause for 5 seconds nSleepSeconds = 5 nMilliseconds = nSleepSeconds * 1000 =Sleep(nMilliSeconds) Mike Gagnon Refox XI +(English version)

RE: How to use Fucntions from DLL file
Thread ID: 318394 onytoo RE: How to use Fucntions from DLL file Hi Experts, > > I wanted to know how to use functions of DLL file in vfp. i am new in programming. i want to use some functions of DLL file in my programme . > Thanks & Regards Anil Shinde In addtion to Mike sample... *!* first, declare the dlls function *!* DECLARE [return_type] func_name IN (dll_name.dll | WIN32API) [AS func_alias] [any_parameters] *!* return_type: *!* ex: LONG, STRING, DOUBLE, etc *!* any_parameters: *!* param_type [@] [param_name] *!* ex: LONG nIndex, STRING @cAddress DECLARE GetWindowRect IN WIN32API LONG hWnd, STRING @rect *!* call dll function m.lcRect = REPLICATE(CHR


Result Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416